O.P. catching click event on rightclicked contextmenu
hello everyone
i have a question, after adding a contextmenu to msn messenger.
how to get which menu item is clicked by the user?
because there is not WM_COMMAND send to the parent window as the TPM_NONOTIFY flag is set in the TrackPopupMenu() in msn messenger. when adding the contextmenu item in the WM_CONTEXTMENUPOPUP message, a menu handle is presented, if calling the TrackpopupMenu()/TrackpopupMenuEx() without calling the default window prog in the subclassed message handling procedure, I can get the which menu item is selected, but how can I pass it back to the default handler for the menu items that wasn't added by me?
msncoder
|