H
H Wu
I added Visio ActiveX control on a form and set a ActiveX property HostID to
a GUID {FA472342-324K-2DF2-2A42-983EA32423}, this put GUID in the registry.
I put following codes:
m_ovWindow = oaVisioControl.Window;
m_ovWindow.Document.Application.Documents.OpenEx("Temp.vsd",
(short)Visio.VisOpenSaveArgs.visOpentDontList);
//Hide the Search Shape controls works here but when I open the stencils it
reopen Shape Search window and docked the stencils on it.
m_ovWindow.Windows.get_ItemFromID((int)Visio.VisWinTypes.visWinIDShapeSearch).Visible = false;
I can't figure out why this happen. So I removed GUID off the HostID
property of the ActiveX Control and it work. Why?? I thought putting a GUID
on HostID property let individual application controls UI of the activex
control.
a GUID {FA472342-324K-2DF2-2A42-983EA32423}, this put GUID in the registry.
I put following codes:
m_ovWindow = oaVisioControl.Window;
m_ovWindow.Document.Application.Documents.OpenEx("Temp.vsd",
(short)Visio.VisOpenSaveArgs.visOpentDontList);
//Hide the Search Shape controls works here but when I open the stencils it
reopen Shape Search window and docked the stencils on it.
m_ovWindow.Windows.get_ItemFromID((int)Visio.VisWinTypes.visWinIDShapeSearch).Visible = false;
I can't figure out why this happen. So I removed GUID off the HostID
property of the ActiveX Control and it work. Why?? I thought putting a GUID
on HostID property let individual application controls UI of the activex
control.