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!

ActiveX not resizeable in Excel

Status
Not open for further replies.

Phil66

Programmer
Jun 19, 2002
2
US
I am having trouble getting ActiveX controls to display the tracker/resizing
frame in (for example Excel). The control(s) are created using VC++ Visual
Studio 6 (SP6), running in Excel from the Office 2000 suite on Windows 2000.

I have got as far as determining that it is because the methods
AmbientShowGrabHandles and AmbientShowHatching both return FALSE in
COleControl::OnActivateInPlace(...) which means the tracker frame is not
displayed. When inserted into the ActiveX test container these both return
TRUE so the tracker is displayed. Furthermore, when trapping this code when
the control is loaded in Excel, if the return values are modified to fake
TRUE from both, the tracker displays perfectly. It follows that the
container supplied in Excel DOES support the tracker frame, so why do the
ambient properties say that it does not?

Phil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top