How to use commandbar |
Post Reply |
Author | |
lab_zj
Newbie Joined: 19 August 2004 Status: Offline Points: 13 |
Post Options
Thanks(0)
Posted: 03 September 2004 at 8:37am |
If I can't change my mainframe's base class from CFrameWnd to CXTPFrameWnd,then Can I using comandbar(like toolbar,menubar etc)?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You can. Use CXTPFrameWndBase<YourFrameClass> |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
lab_zj
Newbie Joined: 19 August 2004 Status: Offline Points: 13 |
Post Options
Thanks(0)
|
thanks for reply! I write as follows: CXTPFrameWndBase<CMDIFrameWnd> m_wndFrame; CMDIFrameWnd *pFrame=getHostFrame();//the only pointer I can get m_wndFrame.Attach( pFrame->GetSafeHwnd() ); m_wndFrame.InitCommandBars(); CXTPCommandBars *pBars=m_wndFrame.GetCommandBars(); ... ... When I plug this DLL into my host application,the toolbar and menubar both no icon,and the toolbar occupied the full area of host applicaion's, and when DLL unload,my computer locked deeply. How do I ? thanks! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Each CommandBars can use own image manager (instead shared) call pBars->SetImageManager(new CXTPImageManager()); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |