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!

Knowing when UIDeactivate is called in MFC ActiveX

Status
Not open for further replies.

Femiani

Programmer
Jun 4, 2003
1
US
I am a graphics programmer, not an expert on ActiveX, but I have written some MFC ActiveX controls to do show some things.

I am writing an ActiveX control to be used in PowerPoint, but I need to be notified when the control is no longer being shown, i.e. when the slide advances in a presentation, or when a user clicks off the control after sending the OnEdit verb.

PowerPoint keeps a metafile image of my control when the presentation is being designed, and then it activates the control when it first appears in the slide.

Once a control has been activated, powerpoint keeps its window open until the application or presention is closed. Powerpoint does not seem to be sending me any messages that would let me know when to free and reallocate the resources I need to display my control.

This seems messy to me, There should be some message I can handle or some virtual function that I can override that lets me know when the control is activated or deactivated.
(WM_ACTIVATE does not work)

Does anyone have any advice?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top