我想用GetMenuItemID来得到我单击菜单时的菜单ID,但我如何能得到我单击菜单的该菜单的npos呢?

解决方案 »

  1.   

    GetMenuPosFromID Function--------------------------------------------------------------------------------Determines an item's position in a menu. Used in the case where the item's identifier (ID) is known.Syntaxint GetMenuPosFromID(          HMENU hmenu,
        UINT id
    );
    Parametershmenu
    [in] Handle of the menu.
    id
    [in] Application-defined 16-bit value that identifies the menu item.
    Return ValueThe item's zero-based position in the menu.
      

  2.   

    看来这两个是没办法了,我想用NPOS来得到ID,你要我用ID来得到NPOS,我用别的办法解决了我想做的功能.谢谢各位了.