RobertoAlcazar
Programmer
I need to resize an ActiveX visual component which is contained inside of a window.
For doing this, I've made a DLL with a function which calls SetWindowPos with the right HWND for the window which contains the ActiveX. The problem is that the window get resized but not the ActiveX contained on it.
So the question is: can I obtain a reference (like a HWND or something) to control directly the ActiveX and then call SetWindowPos with that handle? or maybe can I attach the ActiveX to the container (somehow) to make the ActiveX resized at the same time I resize the window?
I can't modify neither the window code nor the ActiveX code.
Any help? Thanks in advance!
For doing this, I've made a DLL with a function which calls SetWindowPos with the right HWND for the window which contains the ActiveX. The problem is that the window get resized but not the ActiveX contained on it.
So the question is: can I obtain a reference (like a HWND or something) to control directly the ActiveX and then call SetWindowPos with that handle? or maybe can I attach the ActiveX to the container (somehow) to make the ActiveX resized at the same time I resize the window?
I can't modify neither the window code nor the ActiveX code.
Any help? Thanks in advance!