Shoutbox

[C++] Menu Callbacks - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: [C++] Menu Callbacks (/showthread.php?tid=43285)

[C++] Menu Callbacks by Dempsey on 04-20-2005 at 04:03 PM

I've added a menu to another application using AppendMenu and now I want to setup a callback so that I can respond to the click events of the menu items.

How would I go about doing it?  Do i have to subclass the other application?


RE: [C++] Menu Callbacks by Stigmata on 04-20-2005 at 04:16 PM

quote:
Originally posted by Dempsey
Do i have to subclass the other application?

i believe so :S


like vb, use the WM_SHOWWINDOW with appendmenu

and WM_COMMAND for the menu callback :)


RE: [C++] Menu Callbacks by RaceProUK on 04-20-2005 at 07:10 PM

Where's that NotePad menu example when you need it?


RE: [C++] Menu Callbacks by Yousef on 04-20-2005 at 07:16 PM

I did this a while ago for a plugin I still need to finish/release (there are to many of them...), I subclassed it using WM_COMMAND and a dll. Then the dll sends a WM_USER message to my application.