Click here to Skip to main content
15,936,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Currently we are having one MFC ActiveX control. This control is placed in one Dialog (Dialog based application). Whenever the dialog (container) is getting resized, we want to adjust the size of the ActiveX control also. One way to do this is creating a member variable of control in dialog and call some functions of the dialog (ex: ActiveXControl->MoveWindow(),...). But without doing any modifications at the container side (dialog) can we get any notification/intimation about container size inside ActiveX control.

Please get back to me if you need any additional inputs on this.

Thank you in advance.

Best Regards,

1 solution

Is the activex control is 3rd party one??
if so i think only possible ways are MoveWindow() and SetWindowPos()
otherwise you can add methode to the activex control and handle resizing logic in it and invoke this methode from your client dialog.
but not a good logic if many clients use this.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900