![]() |
how to have a popup menu with two icons |
Post Reply
|
| Author | |
Raj.krishnan
Groupie
Joined: 16 January 2006 Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Topic: how to have a popup menu with two iconsPosted: 07 May 2006 at 8:23am |
|
Hello ALL, I have a menu which has to popup when mouse is right clicked and i need that menuitm in menu should have checkbox + icon to be associated with all the menuitems of the menu. How to do this . Can anyone give me a solution. |
|
|
Raj
Software Engineer eGrabber Inc http://vcfreax.blogspot.com/ |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 May 2006 at 10:48am |
|
Hello, Here sample:
ClientToScreen(&point); CMenu mnu; mnu.LoadMenu(IDR_MAINFRAME); CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(((CXTPMDIFrameWnd*)AfxGetMainWn d())->GetCommandBars()); pPopupBar->LoadMenu(mnu.GetSubMenu(0)); pPopupBar->SetDoubleGripper(); CXTPCommandBars::TrackPopupMenu(pPopupBar, TPM_RIGHTBUTTON , point.x, point.y, AfxGetMainWnd()); pPopupBar->InternalRelease(); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Raj.krishnan
Groupie
Joined: 16 January 2006 Status: Offline Points: 44 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2006 at 1:56pm |
|
Hi Oleg, Thank u |
|
|
Raj
Software Engineer eGrabber Inc http://vcfreax.blogspot.com/ |
|
![]() |
|
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 |