Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - popup menu doubt
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

popup menu doubt

 Post Reply Post Reply
Author
Message
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Topic: popup menu doubt
    Posted: 24 March 2008 at 6:46am
Hi, I have uploaded a document which contains my query. Please look into this issue.
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1210
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2008 at 8:51am
Hi;
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
Back to Top
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2008 at 8:56am
Hi, Please see the uploaded document which clears my problem.uploads/20080327_085603_test.rar
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.047 seconds.