Print Page | Close Window

How to use commandbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1136
Printed Date: 06 March 2025 at 4:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to use commandbar
Posted By: lab_zj
Subject: How to use commandbar
Date 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)?



Replies:
Posted By: Oleg
Date Posted: 05 September 2004 at 2:34am

You can. 

Use CXTPFrameWndBase<YourFrameClass>



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: lab_zj
Date Posted: 12 September 2004 at 7:36am

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!



Posted By: Oleg
Date Posted: 12 September 2004 at 9:50am

Each CommandBars can use own image manager  (instead shared)

call

pBars->SetImageManager(new CXTPImageManager());



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net