回 帖 发 新 帖 刷新版面

主题:GetMenuState 如何获得返回值的高位

The value 0xFFFFFFFF if the specified item does not exist. If nId
identifies a pop-up menu, the high-order byte contains the number of items in
the pop-up menu and the low-order byte contains the menu flags associated with
the pop-up menu. Otherwise the return value is a mask (Boolean OR) of the values
from the following list (this mask describes the status of the menu item that
nId identifies):

   

如何获得high-order 啊?

回复列表 (共1个回复)

沙发

WORD HIWORD( DWORD dwValue );
BYTE HIBYTE( WORD wValue );

我来回复

您尚未登录,请登录后再回复。点此登录或注册