[COMCTL32] Fix issue on showing mouse pointer on Mouse Prop Dlg
zecarlos jesus
zecarlos1957 at hotmail.com
Thu May 21 17:51:18 CDT 2020
static BOOL get_icon_size( HICON handle, SIZE *size )
{
ICONINFO info;
BITMAP bmp;
int ret;
if (!GetIconInfo(handle, &info))
return FALSE;
ret = GetObjectW(info.hbmMask, sizeof(bmp), &bmp);
if (ret)
{
size->cx = bmp.bmWidth;
size->cy = bmp.bmHeight;
/*
If this structure defines a black and white icon, this bitmask is formatted
so that the upper half is the icon AND bitmask and the lower half is
the icon XOR bitmask.
*/
if (!info.hbmColor)
size->cy /= 2;
}
GetIconInfo() fill info.hbmColor with NULL HBITMAP handle on black/white bitmaps
DeleteObject(info.hbmMask);
DeleteObject(info.hbmColor);
return !!ret;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200521/d14747d6/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: static.c
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200521/d14747d6/attachment-0001.c>
More information about the wine-devel
mailing list