![]() |
popup menu doubt |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: popup menu doubtPosted: 24 March 2008 at 6:46am |
|
Hi, I have uploaded a document which contains my query. Please look into this issue.
|
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 March 2008 at 8:51am |
|
Hi;
Take a look at 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 |
|
![]() |
|
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 March 2008 at 8:56am |
|
Hi, Please see the uploaded document which clears my problem.uploads/20080327_085603_test.rar
|
|
![]() |
|
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 |