S
Sergey Zamansky
Hi,
I use Visio 2003 ActiveX drawing control in C++ host application. There is a
scenario when 'Undo' method does not work properly or throws exception.
Using the Visio API I create models: I put several shapes on drawing page
and connect them with dynamic connectors. When the model creation process is
initiated without Visio API I can move any shape in the drawing surface with
the mouse and after that use 'Undo' method with no problem. The second way
to create model is to use modified Visio popup menu
(visUIObjSetCntx_DrawObjSel) in the first model. In other words I create a
second model (another instance of the drawing control) INTO the MarkerEvent
handler code because the Marker event is fired when I click an item in the
popup menu. In such case when I move any shape in the drawing surface with
the mouse and call 'Undo' method it does not work properly or thows
exception. Does it mean that a new instance of the drawing control may not
be created correctly from the MarkerEvent handler code? I need to create
second model from the popup menu 'visUIObjSetCntx_DrawObjSel'.
Thank you in advance,
Sergey.
I use Visio 2003 ActiveX drawing control in C++ host application. There is a
scenario when 'Undo' method does not work properly or throws exception.
Using the Visio API I create models: I put several shapes on drawing page
and connect them with dynamic connectors. When the model creation process is
initiated without Visio API I can move any shape in the drawing surface with
the mouse and after that use 'Undo' method with no problem. The second way
to create model is to use modified Visio popup menu
(visUIObjSetCntx_DrawObjSel) in the first model. In other words I create a
second model (another instance of the drawing control) INTO the MarkerEvent
handler code because the Marker event is fired when I click an item in the
popup menu. In such case when I move any shape in the drawing surface with
the mouse and call 'Undo' method it does not work properly or thows
exception. Does it mean that a new instance of the drawing control may not
be created correctly from the MarkerEvent handler code? I need to create
second model from the popup menu 'visUIObjSetCntx_DrawObjSel'.
Thank you in advance,
Sergey.