Print Page | Close Window

popup menu doubt

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=9949
Printed Date: 14 November 2025 at 9:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: popup menu doubt
Posted By: Ashok
Subject: popup menu doubt
Date Posted: 24 March 2008 at 6:46am
Hi, I have uploaded a document which contains my query. Please look into this issue.



Replies:
Posted By: Ashok
Date Posted: 26 March 2008 at 8:02am
Hi, sorry i forgot to upload my document. My query is
In MFC you have a method called

void CMainFrame::OnInitMenuPopup(CMenu *pMenu, UINT uIndex, BOOL bSysMenu)

{
  Here the first argument will have the value of the menu which I clicked, For example if I clicked File menu.. So I use it like this
CMenu *pPopupMenu = pMenu; I will also have the GetSafeHmenu().
}
But in ToolkitPro when I click the menu it goes to the OnInitCommandsPopup(.) --> here how can i get the GetSafeHmenu() and how can i get the popupmenu. Please help.


Posted By: mgampi
Date Posted: 26 March 2008 at 8:51am
Hi;
Take a look at https://forum.codejock.com/forum_posts.asp?TID=1231 - https://forum.codejock.com/forum_posts.asp?TID=1231 .
Perhaps this helps. Otherwise search for OnInitCommandsPopup() in this forum...


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: Ashok
Date Posted: 27 March 2008 at 8:56am
Hi, Please see the uploaded document which clears my problem. https://forum.codejock.com/uploads/20080327_085603_test.rar - uploads/20080327_085603_test.rar



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