comctl32: HGDIOBJ is interchangeable with other handle types so don't cast.
This commit is contained in:
parent
199bcc9c70
commit
092b892f54
|
@ -348,7 +348,7 @@ static void COMBOEX_GetComboFontSize (COMBOEX_INFO *infoPtr, SIZE *size)
|
|||
|
||||
mydc = GetDC (0); /* why the entire screen???? */
|
||||
nfont = (HFONT)SendMessageW (infoPtr->hwndCombo, WM_GETFONT, 0, 0);
|
||||
ofont = (HFONT) SelectObject (mydc, nfont);
|
||||
ofont = SelectObject (mydc, nfont);
|
||||
GetTextExtentPointW (mydc, strA, 1, size);
|
||||
SelectObject (mydc, ofont);
|
||||
ReleaseDC (0, mydc);
|
||||
|
|
|
@ -1212,7 +1212,7 @@ ImageList_DrawIndirect (IMAGELISTDRAWPARAMS *pimldp)
|
|||
/* Create the blend Mask */
|
||||
hOldBitmap = SelectObject(hBlendMaskDC, hBlendMaskBmp);
|
||||
hBlendBrush = fStyle & ILD_BLEND50 ? himl->hbrBlend50 : himl->hbrBlend25;
|
||||
hOldBrush = (HBRUSH) SelectObject(hBlendMaskDC, hBlendBrush);
|
||||
hOldBrush = SelectObject(hBlendMaskDC, hBlendBrush);
|
||||
PatBlt(hBlendMaskDC, 0, 0, cx, cy, PATCOPY);
|
||||
SelectObject(hBlendMaskDC, hOldBrush);
|
||||
|
||||
|
@ -1225,7 +1225,7 @@ ImageList_DrawIndirect (IMAGELISTDRAWPARAMS *pimldp)
|
|||
/* now apply blend to the current image given the BlendMask */
|
||||
if (clrBlend == CLR_DEFAULT) clrBlend = GetSysColor (COLOR_HIGHLIGHT);
|
||||
else if (clrBlend == CLR_NONE) clrBlend = GetTextColor (pimldp->hdcDst);
|
||||
hOldBrush = (HBRUSH) SelectObject (hImageDC, CreateSolidBrush(clrBlend));
|
||||
hOldBrush = SelectObject (hImageDC, CreateSolidBrush(clrBlend));
|
||||
BitBlt (hImageDC, 0, 0, cx, cy, hBlendMaskDC, 0, 0, 0xB8074A); /* PSDPxax */
|
||||
DeleteObject(SelectObject(hImageDC, hOldBrush));
|
||||
SelectObject(hBlendMaskDC, hOldBitmap);
|
||||
|
|
|
@ -193,7 +193,7 @@ static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate)
|
|||
infoPtr->Enabled = TRUE;
|
||||
infoPtr->Notify = lpCreate->hwndParent;
|
||||
|
||||
hSysFont = (HFONT) GetStockObject(ANSI_VAR_FONT);
|
||||
hSysFont = GetStockObject(ANSI_VAR_FONT);
|
||||
GetObjectW(hSysFont, sizeof(LOGFONTW), &logSysFont);
|
||||
SystemParametersInfoW(SPI_GETICONTITLELOGFONT, 0, &logFont, 0);
|
||||
strcpyW(logFont.lfFaceName, logSysFont.lfFaceName);
|
||||
|
|
|
@ -237,7 +237,7 @@ PAGER_DrawButton(HDC hdc, COLORREF clrBk, RECT arrowRect,
|
|||
return;
|
||||
|
||||
hBrush = CreateSolidBrush(clrBk);
|
||||
hOldBrush = (HBRUSH)SelectObject(hdc, hBrush);
|
||||
hOldBrush = SelectObject(hdc, hBrush);
|
||||
|
||||
FillRect(hdc, &rc, hBrush);
|
||||
|
||||
|
|
|
@ -256,7 +256,7 @@ static void test_dtm_set_and_get_mcfont(HWND hWndDateTime)
|
|||
{
|
||||
HFONT hFontOrig, hFontNew;
|
||||
|
||||
hFontOrig = (HFONT)GetStockObject(DEFAULT_GUI_FONT);
|
||||
hFontOrig = GetStockObject(DEFAULT_GUI_FONT);
|
||||
SendMessage(hWndDateTime, DTM_SETMCFONT, (WPARAM)hFontOrig, TRUE);
|
||||
hFontNew = (HFONT)SendMessage(hWndDateTime, DTM_GETMCFONT, 0, 0);
|
||||
ok(hFontOrig == hFontNew, "Expected hFontOrig==hFontNew, hFontOrig=%p, hFontNew=%p\n", hFontOrig, hFontNew);
|
||||
|
|
|
@ -138,7 +138,7 @@ static HWND create_a_window(void)
|
|||
cls.hInstance = 0;
|
||||
cls.hIcon = LoadIconA (0, (LPSTR)IDI_APPLICATION);
|
||||
cls.hCursor = LoadCursorA (0, (LPSTR)IDC_ARROW);
|
||||
cls.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH);
|
||||
cls.hbrBackground = GetStockObject (WHITE_BRUSH);
|
||||
cls.lpszMenuName = 0;
|
||||
cls.lpszClassName = className;
|
||||
|
||||
|
|
Loading…
Reference in New Issue