谢啦

解决方案 »

  1.   

    CMenu *pMenu = LoadMenu( ... );pMenu->GetMenuState( 0, MF_BYPOSITION );
    or
    pMenu->GetMenuState( SC_CLOSE, MF_BYCOMMAND );
      

  2.   

    Return Values
    If the specified item does not exist, the return value is -1. If the menu item opens a submenu, the low-order byte of the return value contains the menu flags associated with the item, and the high-order byte contains the number of items in the submenu opened by the item. Otherwise, the return value is a mask (Bitwise OR) of the menu flags. Following are the menu flags associated with the menu item. Value Meaning 
    MF_CHECKED 
    A check  is placed next to the item (for drop-down menus, submenus, and shortcut menus only).  MF_DISABLED 
    The item is disabled. MF_GRAYED 
    The item is disabled and grayed.  MF_HILITE 
    The item is highlighted.  MF_MENUBARBREAK 
    This is the same as the MF_MENUBREAK flag, except for drop-down menus, submenus, and shortcut menus, where the new column is separated from the old column by a vertical line.  MF_MENUBREAK 
    The item is placed on a new line (for menu bars) or in a new column (for drop-down menus, submenus, and shortcut menus) without separating columns.  MF_OWNERDRAW 
    The item is owner-drawn. MF_POPUP Menu 
    item is a submenu. MF_SEPARATOR 
    There is a horizontal dividing line (for drop-down menus, submenus, and shortcut menus only).  
      

  3.   

    我是说如何根据它的返回值,判断菜单条的状态
    比如说是不是被check呀,等等,我可能没说清抱歉