Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to have a popup menu with two icons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to have a popup menu with two icons

 Post Reply Post Reply
Author
Message
Raj.krishnan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 January 2006
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Raj.krishnan Quote  Post ReplyReply Direct Link To This Post Topic: how to have a popup menu with two icons
    Posted: 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/
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Raj.krishnan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 January 2006
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote Raj.krishnan Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2006 at 1:56pm

Hi Oleg,

Thank u

Raj
Software Engineer
eGrabber Inc
http://vcfreax.blogspot.com/
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.078 seconds.