Thank you everyone.
I've solved the problem also with a main window and widnow procedure, again managing WM_CTLCOLOREDIT message.

If someone need help to implemet alike code, you can write on this thread.