fType - Menu item type. This member can be one or more of these values:
...
MFT_OWNERDRAW
MFT_SEPARATOR
...
поэтому if (mii.fType = MFT_SEPARATOR) then нужно, имхо, изменить на if (mii.fType and MFT_SEPARATOR)>0 then
ну и:
BOOL WINAPI GetMenuItemRect(
HWND hWnd,
HMENU hMenu,
UINT uItem,
LPRECT lprcItem
);
|