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
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