What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [C++] Menu Callbacks

[C++] Menu Callbacks
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. [C++] Menu Callbacks
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?
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
04-20-2005 04:03 PM
Profile E-Mail PM Web Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: [C++] Menu Callbacks
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 :)

04-20-2005 04:16 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [C++] Menu Callbacks
Where's that NotePad menu example when you need it?
[Image: spartaafk.png]
04-20-2005 07:10 PM
Profile PM Web Find Quote Report
Yousef
Full Member
***

Avatar
(previously known as Juzzi)

Posts: 487
Reputation: 19
35 / Male / Flag
Joined: Jul 2004
RE: [C++] Menu Callbacks
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.
Developer of BuddyFuse: Google Talk, Twitter and Hyves in Windows Live Messenger
Ex-Microsoft intern and Windows Live Developer MVP in 2007 & 2008
04-20-2005 07:16 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On