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. Huh?  HELP - CreatePopupMenu sub-menus?
Javascript code:
var MF_CHECKED = 0x8;
var MF_APPEND = 0x100;
var MF_GRAYED = 0x1;
var MF_SEPARATOR = 0x800;
var MF_STRING = 0x0;
// don't need the rest...
var MCOWMnu = Interop.Call("user32", "CreatePopupMenu");
Interop.Call("user32", "AppendMenuW", MCOWMnu, MF_GRAYED, 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_STRING, 0, "Disabled");

But is there a way to make a sub-menu?

quote:
Originally posted by MSDN
MF_POPUP: Specifies that the menu item opens a drop-down menu or submenu. The uIDNewItem parameter specifies a handle to the drop-down menu or submenu. This flag is used to add a menu name to a menu bar, or a menu item that opens a submenu to a drop-down menu, submenu, or shortcut menu.
Does that open a menu, close a menu, insert an existing menu or what?

EDIT: seems that MF_POPUP is 0x10, but now what?

This post was edited on 10-08-2009 at 07:17 PM by whiz.
10-08-2009 07:07 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