MM SETITEMBYPOS

From NikiWiki
Jump to: navigation, search
#define MM_SETITEMBYPOS 0x01f4

Set MENUITEM by its position.

mp1 
Position of item in menu
mp2 
PMENUITEM (16-bit pointer)

Returns TRUE if the request is successful

This message will only set an item in the specified menu. The iPosition field on the MENUITEM structure is ifnored because you cannot change the position of a menu item. If the submenu or bitmap handle is changing, the previous sumbenu window handle or bitmap handle is not deleted during the handling of this message.

(Source: newsgroup)