![]() |
Menu gets disabled in Ribbonbar... |
Post Reply
|
| Author | |
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
Topic: Menu gets disabled in Ribbonbar...Posted: 04 July 2008 at 1:00am |
|
hello,
this is Pariksh*t.
i am implementing ribbonbar
i have one button and and one menu in ribbons group
when i click on button my menu gets disabled
what is the reason and what i am supposed to do?
The code snippet is given below for reference -
//'/Button 'Photo'. CXTPControlButton* pCollectionPhoto = (CXTPControlButton*)pGroup->Add(xtpControlButton, IDC_PHOTO); pCollectionPhoto->SetWidth(125); pCollectionPhoto->SetStyle(xtpButtonIcon); UINT uiGroupClipboardphoto[] = {IDC_PHOTO}; pCommandBars->GetImageManager()->SetIcons(IDR_SMALLICONS, uiGroupClipboardphoto, _countof(uiGroupClipboardphoto), CSize(16, 16)); //'/Button 'Photo' end. //'/Mneu For Photo Button (Collection). CXTPControlButton* p = (CXTPControlButton*)pGroup->Add(xtpControlPopup, IDR_MENU2); CXTPControlPopup* pControlPhotoMenu = (CXTPControlPopup*)pRibbonBar->GetControls()->Add(xtpControlPopup, -1); CMenu mnuPhotoCollection; mnuPhotoCollection.LoadMenu(IDR_MENU2); pControlPhotoMenu->SetCommandBar(mnuPhotoCollection.GetSubMenu(0)); pControlPhotoMenu->SetCaption(_T("Foto Finish")); //'/Mneu For Photo Button (Collection) end. Regards,
Pariksh*t.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2008 at 1:25am |
|
Hi,
You need add ON_COMMAND handler for menu items.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Pariksh*t
Groupie
Joined: 26 June 2008 Location: India Status: Offline Points: 77 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 July 2008 at 2:56am |
|
hello oleg i have done event handling
http://192.168.40.16/pxlsoft/download/products/Testing/Temp/dfs.zip http://192.168.40.16/pxlsoft/download/products/Testing/email.zip These is my code plz Reply
Bye
|
|
![]() |
|
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 |