Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This structure contains information about a notification message. The pointer to this structure is specified as the lParam member of the WM_NOTIFY message.
typedef struct tagNMNEWMENU {
NMHDR hdr;
TCHAR szReg[80];
HMENU hMenu;
CLSID clsid;
IpropertyBag ** pppropbag;
} NMNEWMENU, * PNMNEWMENU;
Members
hdr
The standard NMHDR definition. The code member is one of the following flags.Flag Description NMN_GETAPPREGKEY In the szReg member, an application can supply a pointer to a null-terminated string of the form:
HKLM\My Application\NewMenuWhere the registry entry is:
HKLM\My Application\NewMenu\{GUID}="Menu Text"The shell will enumerate all the GUID's under the key provided, and add menu entries for each.
NMN_NEWMENUDESTROY Sent to application before the shared New menu is destroyed. NMN_INVOKECOMMAND Sent to application before a new instance of a Component Object Model (COM) object is created. The clsid member indicates the menu item chosen. If the application handles this message, it should return TRUE so that the shell does not instantiate the COM object. NMN_NEWBUTTONUPDATED Sent to application when the New button style changes. NMN_GETPROPERTYBAG Sent to the application to retrieve an IPersistPropertyBag interface pointer for the object. If this interface is supported by the application, the properties are loaded into the new object for initialization. szReg
NULL-terminated string. See the NMN_GETAPPREGKEY flag for details.hMenu
Handle to the New menu.clsid
The class ID of the menu selection.pppropbag
This is used by NMN_GETPROPERTYBAG.
Requirements
Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Header: newmenu.h
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.