Where can I put my MFC Control initialization code

Viewed 5326

I'm writing an MFC CEdit derived control, and I need to add initialization code once the control's 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

EDIT: The thing I'm initializing is the edit's cue banner

Thanks

3 Answers
Related