resize ATL activeX control
-
Hi How to resize an ATL activeX Control ? (from inside the Control's code) I use
SetWindowPos
orMoveWindow
and they work..But when the contol is activated (the user clicks it) it's resized back to the original size. any help with this ? I use ATL 3.0 -
Hi How to resize an ATL activeX Control ? (from inside the Control's code) I use
SetWindowPos
orMoveWindow
and they work..But when the contol is activated (the user clicks it) it's resized back to the original size. any help with this ? I use ATL 3.0 -
However if your constol is being hosted in Internet Explorer - that won't work. ;-) The "trick" in IE is to find the IHTMLObjectElement that represents your ActiveX control & change it's height / width. This will cause IE to adjust it's layout & resize your ActiveX control's window. [ Jason De Arte | Toy Maker | 1001010.com ]
-
However if your constol is being hosted in Internet Explorer - that won't work. ;-) The "trick" in IE is to find the IHTMLObjectElement that represents your ActiveX control & change it's height / width. This will cause IE to adjust it's layout & resize your ActiveX control's window. [ Jason De Arte | Toy Maker | 1001010.com ]
Jason De Arte wrote: However if your constol is being hosted in Internet Explorer - that won't work Are you sure ? :confused::confused::confused: In fact I used this in IE6 and worked fine !! does this change for other IE versions ?
-
Jason De Arte wrote: However if your constol is being hosted in Internet Explorer - that won't work Are you sure ? :confused::confused::confused: In fact I used this in IE6 and worked fine !! does this change for other IE versions ?
I am as certain of that just as I am certain of my ability to spell the most common of words. constol d'oh! [ Jason De Arte | Toy Maker | 1001010.com ]