G
Guy..L
This code below fires events for several Visio windows in the application
(AxDrawingControl, C#.NET3.5, VS2007SDK) when the user clicks on the little X
on the Pan & Zoom, Drawing Explorer, Size & Position windows. Buttons on a
toolstrip can then be toggled to the off state when the event fires...
EventList eW = win.Windows.EventList;
eW.AddAdvise((short)VisEventCodes.visEvtWindow +
(short)VisEventCodes.visEvtDel, eventHandler, "", "");
where win is the AxDrawingControl.Window. These work great for said windows
because events occur wherever the window may be docked inside the ruler,
outside the ruler or floating around the desktop.
No such event fires when the Shapes window X is clicked. (I've looked at
all the other window events--they don't fire. I've tried looking at events
on ShapesWindow.ParentWindow. Shapes window is opened using
document.OpenStencilWindow.)
How can I synchronize the application toolstripbutton with the Shapes window
on X closings?
(AxDrawingControl, C#.NET3.5, VS2007SDK) when the user clicks on the little X
on the Pan & Zoom, Drawing Explorer, Size & Position windows. Buttons on a
toolstrip can then be toggled to the off state when the event fires...
EventList eW = win.Windows.EventList;
eW.AddAdvise((short)VisEventCodes.visEvtWindow +
(short)VisEventCodes.visEvtDel, eventHandler, "", "");
where win is the AxDrawingControl.Window. These work great for said windows
because events occur wherever the window may be docked inside the ruler,
outside the ruler or floating around the desktop.
No such event fires when the Shapes window X is clicked. (I've looked at
all the other window events--they don't fire. I've tried looking at events
on ShapesWindow.ParentWindow. Shapes window is opened using
document.OpenStencilWindow.)
How can I synchronize the application toolstripbutton with the Shapes window
on X closings?