Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
092b892f
Commit
092b892f
authored
Oct 25, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: HGDIOBJ is interchangeable with other handle types so don't cast.
parent
199bcc9c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
comboex.c
dlls/comctl32/comboex.c
+1
-1
imagelist.c
dlls/comctl32/imagelist.c
+2
-2
ipaddress.c
dlls/comctl32/ipaddress.c
+1
-1
pager.c
dlls/comctl32/pager.c
+1
-1
datetime.c
dlls/comctl32/tests/datetime.c
+1
-1
imagelist.c
dlls/comctl32/tests/imagelist.c
+1
-1
No files found.
dlls/comctl32/comboex.c
View file @
092b892f
...
...
@@ -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
);
...
...
dlls/comctl32/imagelist.c
View file @
092b892f
...
...
@@ -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
);
...
...
dlls/comctl32/ipaddress.c
View file @
092b892f
...
...
@@ -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
);
...
...
dlls/comctl32/pager.c
View file @
092b892f
...
...
@@ -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
);
...
...
dlls/comctl32/tests/datetime.c
View file @
092b892f
...
...
@@ -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
);
...
...
dlls/comctl32/tests/imagelist.c
View file @
092b892f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment