activex control toolbar

Y

yulin.yang

I am writing a VC6(or VC8) SDI application using visio drawing activex
control.
How can I show the activex toolbar and menu in my SDI application?

--


Best Regards,

Yang Yulin
 
Y

yulin.yang

the codes in SDI view is:

void CVisioView::OnInitialUpdate()
{
CView::OnInitialUpdate();

// TODO: remove this code when final selection model code is written
m_pSelection = NULL; // initialize selection

m_pVisioControl = new CDrawingControl();

CRect rect;
GetClientRect(&rect);
m_pVisioControl->Create(NULL, WS_CHILD | WS_VISIBLE, rect, this,
IDC_DRAWINGCONTROL);
HWND hWnd = m_pVisioControl->Detach();
m_pVisioControl->SubclassWindow(hWnd);
m_pVisioControl->SetNegotiateMenus(TRUE);
m_pVisioControl->SetNegotiateToolbars(TRUE);
}

while the codes have no use:
m_pVisioControl->SetNegotiateMenus(TRUE);
m_pVisioControl->SetNegotiateToolbars(TRUE);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top