Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Loading menubar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Loading menubar

 Post Reply Post Reply
Author
Message
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Topic: Loading menubar
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2006 at 8:33am
Hello,
You can call SetMenu when you want.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.