Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>getmenustate</b> get number of item in pop-up menu http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetMenuState         Get Number of Item In Pop-Up Menu

WORD GetMenuState(hMenu, wID, wFlags)
HMENU hMenu;
WORD wID; /* Id (or position) of pop-up or mask from table below */
WORD wFlags; /* MF_BYPOSITION or MF_BYCOMMAND */

                        Masks
                 |-----------------|
                 | MF_CHECKED      |
                 | MF_DISABLED     |
                 | MF_ENABLED      |
                 | MF_MENUBARBREAK |
                 | MF_MENUBREAK    |
                 | MF_SEPARATOR    |
                 | MF_UNCHECKED    |
                 +-----------------+


See Also: GetMenuItemCount

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson