Print Page | Close Window

Alt Key and Menu-Toolbar

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=4384
Printed Date: 05 July 2024 at 9:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Alt Key and Menu-Toolbar
Posted By: lemongrass
Subject: Alt Key and Menu-Toolbar
Date 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




Replies:
Posted By: lemongrass
Date Posted: 10 June 2006 at 2:04pm
Solved. Sorry, I'am new to XTremeToolkit and was searching for days!



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