user32: output a FIXME message if a menu uses magic bitmaps for check marks.
Rein Klazes
wijn at online.nl
Fri Apr 10 02:32:45 CDT 2009
wxWidgets framework likes to use them for checked menu items.
---
dlls/user32/menu.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 82b4772..59f399e 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -4081,6 +4081,10 @@ BOOL WINAPI SetMenuItemBitmaps( HMENU hMenu, UINT nPos, UINT wFlags,
item->hCheckBit = hNewCheck;
item->hUnCheckBit = hNewUnCheck;
item->fState |= MF_USECHECKBITMAPS;
+ if( IS_MAGIC_BITMAP( item->hCheckBit))
+ FIXME( "checkmark is a magic bitmap: %d\n", (int)( item->hCheckBit));
+ if( IS_MAGIC_BITMAP( item->hUnCheckBit))
+ FIXME( "un-checkmark is a magic bitmap: %d\n", (int)( item->hUnCheckBit));
}
return TRUE;
}
@@ -4786,6 +4790,10 @@ static BOOL SetMenuItemInfo_common(MENUITEM * menu,
{
menu->hCheckBit = lpmii->hbmpChecked;
menu->hUnCheckBit = lpmii->hbmpUnchecked;
+ if( IS_MAGIC_BITMAP( menu->hCheckBit))
+ FIXME( "checkmark is a magic bitmap: %d\n", (int)( menu->hCheckBit));
+ if( IS_MAGIC_BITMAP( menu->hUnCheckBit))
+ FIXME( "un-checkmark is a magic bitmap: %d\n", (int)( menu->hUnCheckBit));
}
if (lpmii->fMask & MIIM_DATA)
menu->dwItemData = lpmii->dwItemData;
--
1.6.2.1
More information about the wine-patches
mailing list