What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - CreatePopupMenu sub-menus?

HELP - CreatePopupMenu sub-menus?
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - CreatePopupMenu sub-menus?
That's better - I'll use that.

Javascript code:
var MCOWMnu = Interop.Call("user32", "CreatePopupMenu");
Interop.Call("user32", "AppendMenuW", MCOWMnu, MF_STRING, 0, "Normal");
Interop.Call("user32", "AppendMenuW", MCOWMnu, MF_CHECKED, 0, "Checked");
Interop.Call("user32", "AppendMenuW", MCOWMnu, MF_SEPARATOR, 0, 0);
Interop.Call("user32", "AppendMenuW", MCOWMnu, MF_GRAYED, 0, "Disabled");
var MCOWSubMnu = Interop.Call("user32", "CreatePopupMenu");
Interop.Call("user32", "AppendMenuW", MCOWSubMnu, MF_STRING, 0, "Sub-option");
Interop.Call("user32", "AppendMenuW", MCOWMnu, MF_POPUP, MCOWSubMnu, "Sub-menu");

It works!  :P

This post was edited on 10-09-2009 at 06:14 PM by whiz.
10-09-2009 06:08 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP - CreatePopupMenu sub-menus? - by whiz on 10-08-2009 at 07:07 PM
RE: HELP - CreatePopupMenu sub-menus? - by Matti on 10-08-2009 at 07:36 PM
RE: HELP - CreatePopupMenu sub-menus? - by whiz on 10-08-2009 at 07:48 PM
RE: HELP - CreatePopupMenu sub-menus? - by Spunky on 10-08-2009 at 07:54 PM
RE: HELP - CreatePopupMenu sub-menus? - by whiz on 10-09-2009 at 06:08 PM


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