I have a custom MFC CMyDialog dialog with a custom CMyControl control added using the resource editor. The dialog box has a member variable for the control and has DDX configured.
The control accepts messages with paints and has its own paint-based handler. But I want to have the equivalent of OnInitDialog in the control, so it can safely do some initialization when creating - putting code in the constructor leads to problems.
I tried adding handlers for the WM_CREATE, WM_NCCREATE messages and adding overrides in CWnd :: Create ... but none of them work.
What should I look to know how to edit it safely?
source
share