Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing an ActiveX

Status
Not open for further replies.

RobertoAlcazar

Programmer
Oct 22, 2004
3
ES
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!
 
sorry I've just found another ActiveX forum, so I'll post again this question there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top