Hello there,
I am creating a right click menu for my app and I am having trouble with the second parameter on CMenu::AppendMenu(). This parameter is the function id?
I have the following code working...
I have a function called OnBnClickedButton1(), I want to add an entry to the menu so I call this function. I know it goes something like this...
The second parameter is of type: UINT_PTR
Could someone please explain what I need to place in the code to execute my OnBnClickedButton1() function?
I know it was a long post, I just wanted to be clear.
Thanks,
Ron
typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
I am creating a right click menu for my app and I am having trouble with the second parameter on CMenu::AppendMenu(). This parameter is the function id?
I have the following code working...
Code:
[blue]
CMenu myMenu;
POINT pos;
GetCursorPos(&pos);
myMenu.CreatePopupMenu();
myMenu.AppendMenu(MF_STRING,ID_APP_EXIT, (LPCTSTR)"E&xit");
myMenu.TrackPopupMenu(TPM_RIGHTALIGN,pos.x,pos.y,this);
[/blue]
I have a function called OnBnClickedButton1(), I want to add an entry to the menu so I call this function. I know it goes something like this...
Code:
[blue]
myMenu.AppendMenu(MF_STRING,[red]????????[/red], (LPCTSTR)"Add Key");
[/blue]
The second parameter is of type: UINT_PTR
Could someone please explain what I need to place in the code to execute my OnBnClickedButton1() function?
I know it was a long post, I just wanted to be clear.
Thanks,
Ron
typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;