CXTMenuBar Error |
Post Reply |
Author | |
kstowell
Admin Group Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
Posted: 02 January 2004 at 5:30pm |
Hello, Please take a look at this article: It has a sample included that shows how to accomplish this. Regards, Codejock Support |
|
WWW.CAM.ES
Newbie Joined: 17 October 2003 Location: Spain Status: Offline Points: 1 |
Post Options
Thanks(0)
|
This code fails. Makes second submenu be empty and moves down its items to next menu. CMenu *pMainMenu = m_wndMenuBar.GetMenu(); if(pMainMenu){ pMainMenu->AppendMenu(MF_STRING, 1000, "Prueba");pMainMenu->InsertMenu( 2, MF_BYPOSITION| MF_STRING, 1001, "Prueba2");}
This code works fine. Append menu entries in the first submenu. CMenu *pMenu2 = pMainMenu->GetSubMenu( 0); if(pMenu2){ pMenu2->AppendMenu(MF_STRING, 1000, "Prueba");pMenu2->InsertMenu( 2, MF_BYPOSITION| MF_STRING, 1001, "Prueba2");}
If anyone knows something about this problem please send information on how resolve it. Our intention is to append new items dinamically in the mainframe window menu.
Thanks.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |