Print Page | Close Window

how to have a popup menu with two icons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4152
Printed Date: 10 November 2025 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to have a popup menu with two icons
Posted By: Raj.krishnan
Subject: how to have a popup menu with two icons
Date 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/



Replies:
Posted By: Oleg
Date 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


Posted By: Raj.krishnan
Date Posted: 09 May 2006 at 1:56pm

Hi Oleg,

Thank u



-------------
Raj
Software Engineer
eGrabber Inc
http://vcfreax.blogspot.com/



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