Print Page | Close Window

Loading menubar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4605
Printed Date: 10 November 2025 at 8:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Loading menubar
Posted By: venkyhyd
Subject: Loading menubar
Date Posted: 18 July 2006 at 5:19am
Hi,

Can we give menubar Id or handle to the CXTPCommandBars after calling CMainFrame::OnCreate. As I could see that the MenuBar is set using the SetMenu function in OnCreate. But here in my application the MenuBar is created at very later stage of the application instantiation.

thnks



Replies:
Posted By: Oleg
Date Posted: 18 July 2006 at 8:33am
Hello,
You can call SetMenu when you want.


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


Posted By: venkyhyd
Date Posted: 18 July 2006 at 9:59am
The Menubar can be set at any place in the Runtime or is that like i should only set to the Commandbars in OnCreate Only.

Can I change bitmaps on the menubar or on the toolbar at runtime. That is replacing already existing Bitmaps with the new onces.


Posted By: ABuenger
Date Posted: 18 July 2006 at 10:42am
Originally posted by venkyhyd venkyhyd wrote:

Can I change bitmaps on the menubar or on the toolbar at runtime. That is replacing already existing Bitmaps with the new onces.
 
GetCommandBars()->GetImageManager()->SetIcons (...)
 


-------------
Codejock support



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