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