Need to resize ActiveX control at start up. OnSize of dialog is called before ActiveX Control is a window and cannot be used.
Hello and happy Friday everyone; I have yet another question.
I have an activeX control on my dialog that I resize by using a method ResizeControl, in the OnSize message of my dialog.
This works properly once the program is running. If I resize the dialog my control positions and resizes perfectly.
My problem is that at startup the ResizeControl is not called and my control always starts in the top left corner.
For safety sake I need to make sure that the Dialog and the Control are both Windows before calling ResizeControl.
Is there any init method that I could use where the Window and the Control would both be windows so I could call ResizeControl?