Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Alt Key and Menu-Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Alt Key and Menu-Toolbar

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


Joined: 09 June 2006
Location: Austria
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote lemongrass Quote  Post ReplyReply Direct Link To This Post Topic: Alt Key and Menu-Toolbar
    Posted: 09 June 2006 at 8:42am

I've a dialog based application and use a CXTPMenuBar. Its working fine except two issues:

1) the ALT key does not activate the menu like usually, I use the following code to create the MenuBar

 m_wndMenuBar.CreateToolBar(WS_CHILD|WS_VISIBLE|CBRS_GR IPPER, this);
  m_wndMenuBar.LoadMenuBar(IDR_MENU_MAIN);
 m_wndMenuBar.SetFlags(xtpFlagStretched | xtpFlagHideWrap | xtpFlagAlignAny);

2) I'am not able to reload the Menubar with m_wndMenuBar.LoadMenuBar(IDR_MENU_MAIN);

The problem here, I like to switch the language and for this reason I derived CTPMenuBar and overloaded the LoadMenuBar method. It doesn't work, because the I think the MenuBar is not empty on the second call!?!

Thanks a lot for your help

Back to Top
lemongrass View Drop Down
Groupie
Groupie


Joined: 09 June 2006
Location: Austria
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote lemongrass Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2006 at 2:04pm
Solved. Sorry, I'am new to XTremeToolkit and was searching for days!
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.125 seconds.