Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtControlBar from DLL plugin Collapse All
Subject Author Date
wallas wallas Apr 22, 2004 - 1:51 AM

Hello All,


I’m coding a plugin for a MDI Application, in the plugin ( a dLL dynamic linked with ProfUIS223m.dll ).


In this DLL plugin i Create CExtControlBar with a CFrameWnd pParentWnd =  ((CFrameWnd*)AfxGetApp()->m_pMainWnd); when i EnbleDockingBar for the control and the parent Frame and i show it, then it DESAPEARS all APPLICATION TOOLBARS, repleaced by my CExtControlBar docked in the Application.


 


i use this code:


int mfcTest::testProfUIS(CFrameWnd* pParentFrame)
{


    m_pFrameWnd = pParentFrame;
    ASSERT(m_pFrameWnd);


    if( !m_wndResizableBar0.Create( "myDockBar",m_pFrameWnd,ID_VIEW_CHILDFRAME_BAR_0)) 
 {
  AfxMessageBox("Failed to create m_wndResizableBar0\n");
  return -1;  // fail to create
 }


   m_wndResizableBar0.EnableDocking(CBRS_ALIGN_LEFT | CBRS_ALIGN_RIGHT);


 m_pFrameWnd->EnableDocking(CBRS_ALIGN_ANY);
 m_pFrameWnd->DockControlBar(&m_wndResizableBar0, AFX_IDW_DOCKBAR_LEFT);
 m_pFrameWnd->ShowControlBar(&m_wndResizableBar0,TRUE,TRUE);


 


return 0;


}

Technical Support Apr 25, 2004 - 12:23 PM

Hello,

Please verify your DLL type first. It must be an MFC extension DLL (i.e. NOT an MFC regular DLL). Besides we have not enough information to provide you with the help. Could you send us your EXE/DLL test project?

wallas wallas Apr 26, 2004 - 4:41 AM

Oh, thanks for the replay, i have done the docking window by standard mfc, and it works, i have no conflict with application dockings. By the way i use dialogs inside the docking window from Prof-UIS, and it works well!!


I can’t send you the project, you would need a CAD platform.


 


thanks