Where can I put my MFC Control initialization code
===

I'm writing an MFC CEdit derived control, and I need to add initialization code once the control is graphically, when the m_hwnd is filled.

Which function can I override or which message can I handle to achieve this?

I tried with OnCreate, but It seems to work only for dialogs

Thanks