Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f3d1893f
Commit
f3d1893f
authored
Oct 23, 2002
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add needed casts for a "no warnings" compile of comctl32.
parent
fb1a572b
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
60 additions
and
53 deletions
+60
-53
animate.c
dlls/comctl32/animate.c
+11
-9
comboex.c
dlls/comctl32/comboex.c
+5
-6
commctrl.c
dlls/comctl32/commctrl.c
+6
-6
datetime.c
dlls/comctl32/datetime.c
+1
-1
hotkey.c
dlls/comctl32/hotkey.c
+1
-1
imagelist.c
dlls/comctl32/imagelist.c
+4
-3
ipaddress.c
dlls/comctl32/ipaddress.c
+1
-1
progress.c
dlls/comctl32/progress.c
+1
-1
propsheet.c
dlls/comctl32/propsheet.c
+3
-1
status.c
dlls/comctl32/status.c
+4
-5
toolbar.c
dlls/comctl32/toolbar.c
+3
-3
tooltips.c
dlls/comctl32/tooltips.c
+13
-9
trackbar.c
dlls/comctl32/trackbar.c
+1
-1
treeview.c
dlls/comctl32/treeview.c
+6
-6
No files found.
dlls/comctl32/animate.c
View file @
f3d1893f
...
...
@@ -385,8 +385,8 @@ static DWORD CALLBACK ANIMATE_AnimationThread(LPVOID ptr_)
hDC
=
GetDC
(
infoPtr
->
hWnd
);
/* sometimes the animation window will be destroyed in between
* by the main program, so a ReleaseDC() error msg is possible */
infoPtr
->
hbrushBG
=
SendMessageA
(
GetParent
(
infoPtr
->
hWnd
),
WM_CTLCOLORSTATIC
,
hDC
,
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageA
(
GetParent
(
infoPtr
->
hWnd
),
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hDC
,
(
LPARAM
)
infoPtr
->
hWnd
);
ReleaseDC
(
infoPtr
->
hWnd
,
hDC
);
}
...
...
@@ -690,7 +690,7 @@ static LRESULT ANIMATE_OpenA(HWND hWnd, WPARAM wParam, LPARAM lParam)
}
if
(
!
hInstance
)
hInstance
=
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
);
hInstance
=
(
HINSTANCE
)
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
);
if
(
HIWORD
(
lParam
))
{
TRACE
(
"(
\"
%s
\"
);
\n
"
,
(
LPSTR
)
lParam
);
...
...
@@ -816,8 +816,8 @@ static LRESULT ANIMATE_EraseBackground(HWND hWnd, WPARAM wParam, LPARAM lParam)
if
(
GetWindowLongA
(
hWnd
,
GWL_STYLE
)
&
ACS_TRANSPARENT
)
{
hBrush
=
SendMessageA
(
GetParent
(
hWnd
),
WM_CTLCOLORSTATIC
,(
HDC
)
wParam
,
(
LPARAM
)
hWnd
);
hBrush
=
(
HBRUSH
)
SendMessageA
(
GetParent
(
hWnd
),
WM_CTLCOLORSTATIC
,
wParam
,
(
LPARAM
)
hWnd
);
}
GetClientRect
(
hWnd
,
&
rect
);
...
...
@@ -874,8 +874,9 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
if
(
GetWindowLongA
(
hWnd
,
GWL_STYLE
)
&
ACS_TRANSPARENT
)
{
ANIMATE_INFO
*
infoPtr
=
ANIMATE_GetInfoPtr
(
hWnd
);
infoPtr
->
hbrushBG
=
SendMessageA
(
GetParent
(
hWnd
),
WM_CTLCOLORSTATIC
,
(
HDC
)
wParam
,
(
LPARAM
)
hWnd
);
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageA
(
GetParent
(
hWnd
),
WM_CTLCOLORSTATIC
,
wParam
,
(
LPARAM
)
hWnd
);
}
return
ANIMATE_DrawFrame
(
ANIMATE_GetInfoPtr
(
hWnd
));
...
...
@@ -893,8 +894,9 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
return
DefWindowProcA
(
hWnd
,
uMsg
,
wParam
,
lParam
);
if
(
GetWindowLongA
(
hWnd
,
GWL_STYLE
)
&
ACS_TRANSPARENT
)
infoPtr
->
hbrushBG
=
SendMessageA
(
GetParent
(
hWnd
),
WM_CTLCOLORSTATIC
,
(
HDC
)
wParam
,
(
LPARAM
)
hWnd
);
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageA
(
GetParent
(
hWnd
),
WM_CTLCOLORSTATIC
,
wParam
,
(
LPARAM
)
hWnd
);
if
(
wParam
)
{
...
...
dlls/comctl32/comboex.c
View file @
f3d1893f
...
...
@@ -319,7 +319,7 @@ static void COMBOEX_GetComboFontSize (COMBOEX_INFO *infoPtr, SIZE *size)
HDC
mydc
;
mydc
=
GetDC
(
0
);
/* why the entire screen???? */
nfont
=
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
nfont
=
(
HFONT
)
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
ofont
=
(
HFONT
)
SelectObject
(
mydc
,
nfont
);
GetTextExtentPointA
(
mydc
,
"A"
,
1
,
size
);
SelectObject
(
mydc
,
ofont
);
...
...
@@ -962,7 +962,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
GetWindowLongW
(
hwnd
,
GWL_STYLE
),
cs
->
y
,
cs
->
x
,
cs
->
cx
,
cs
->
cy
,
hwnd
,
(
HMENU
)
GetWindowLongW
(
hwnd
,
GWL_ID
),
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
(
HINSTANCE
)
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
/*
* native does the following at this point according to trace:
...
...
@@ -979,7 +979,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
SetPropA
(
infoPtr
->
hwndCombo
,
COMBOEX_SUBCLASS_PROP
,
hwnd
);
infoPtr
->
prevComboWndProc
=
(
WNDPROC
)
SetWindowLongW
(
infoPtr
->
hwndCombo
,
GWL_WNDPROC
,
(
LONG
)
COMBOEX_ComboWndProc
);
infoPtr
->
font
=
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
infoPtr
->
font
=
(
HFONT
)
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
/*
...
...
@@ -992,8 +992,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
0
,
0
,
0
,
0
,
/* will set later */
infoPtr
->
hwndCombo
,
(
HMENU
)
GetWindowLongW
(
hwnd
,
GWL_ID
),
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
(
HINSTANCE
)
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
/* native does the following at this point according to trace:
* GetWindowThreadProcessId(hwndEdit,0)
...
...
@@ -1009,7 +1008,7 @@ static LRESULT COMBOEX_Create (HWND hwnd, LPCREATESTRUCTA cs)
SetPropA
(
infoPtr
->
hwndEdit
,
COMBOEX_SUBCLASS_PROP
,
hwnd
);
infoPtr
->
prevEditWndProc
=
(
WNDPROC
)
SetWindowLongW
(
infoPtr
->
hwndEdit
,
GWL_WNDPROC
,
(
LONG
)
COMBOEX_EditWndProc
);
infoPtr
->
font
=
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
infoPtr
->
font
=
(
HFONT
)
SendMessageW
(
infoPtr
->
hwndCombo
,
WM_GETFONT
,
0
,
0
);
}
/*
...
...
dlls/comctl32/commctrl.c
View file @
f3d1893f
...
...
@@ -356,9 +356,9 @@ ShowHideMenuCtl (HWND hwnd, UINT uFlags, LPINT lpInfo)
while
(
*
lpMenuId
!=
uFlags
)
lpMenuId
+=
2
;
if
(
GetMenuState
(
lpInfo
[
1
],
uFlags
,
MF_BYCOMMAND
)
&
MFS_CHECKED
)
{
if
(
GetMenuState
(
(
HMENU
)
lpInfo
[
1
],
uFlags
,
MF_BYCOMMAND
)
&
MFS_CHECKED
)
{
/* uncheck menu item */
CheckMenuItem
(
lpInfo
[
0
],
*
lpMenuId
,
MF_BYCOMMAND
|
MF_UNCHECKED
);
CheckMenuItem
(
(
HMENU
)
lpInfo
[
0
],
*
lpMenuId
,
MF_BYCOMMAND
|
MF_UNCHECKED
);
/* hide control */
lpMenuId
++
;
...
...
@@ -367,7 +367,7 @@ ShowHideMenuCtl (HWND hwnd, UINT uFlags, LPINT lpInfo)
}
else
{
/* check menu item */
CheckMenuItem
(
lpInfo
[
0
],
*
lpMenuId
,
MF_BYCOMMAND
|
MF_CHECKED
);
CheckMenuItem
(
(
HMENU
)
lpInfo
[
0
],
*
lpMenuId
,
MF_BYCOMMAND
|
MF_CHECKED
);
/* show control */
lpMenuId
++
;
...
...
@@ -535,7 +535,7 @@ CreateStatusWindowA (INT style, LPCSTR text, HWND parent, UINT wid)
return
CreateWindowA
(
STATUSCLASSNAMEA
,
text
,
style
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
parent
,
wid
,
0
,
0
);
parent
,
(
HMENU
)
wid
,
0
,
0
);
}
...
...
@@ -559,7 +559,7 @@ CreateStatusWindowW (INT style, LPCWSTR text, HWND parent, UINT wid)
return
CreateWindowW
(
STATUSCLASSNAMEW
,
text
,
style
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
parent
,
wid
,
0
,
0
);
parent
,
(
HMENU
)
wid
,
0
,
0
);
}
...
...
@@ -592,7 +592,7 @@ CreateUpDownControl (DWORD style, INT x, INT y, INT cx, INT cy,
{
HWND
hUD
=
CreateWindowA
(
UPDOWN_CLASSA
,
0
,
style
,
x
,
y
,
cx
,
cy
,
parent
,
id
,
inst
,
0
);
parent
,
(
HMENU
)
id
,
inst
,
0
);
if
(
hUD
)
{
SendMessageA
(
hUD
,
UDM_SETBUDDY
,
(
WPARAM
)
buddy
,
0
);
SendMessageA
(
hUD
,
UDM_SETRANGE
,
0
,
MAKELONG
(
maxVal
,
minVal
));
...
...
dlls/comctl32/datetime.c
View file @
f3d1893f
...
...
@@ -1159,7 +1159,7 @@ DATETIME_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
WS_CHILD
|
WS_VISIBLE
|
BS_AUTOCHECKBOX
,
2
,
2
,
13
,
13
,
hwnd
,
0
,
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
),
0
);
0
,
(
HINSTANCE
)
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
),
0
);
SendMessageA
(
infoPtr
->
hwndCheckbut
,
BM_SETCHECK
,
1
,
0
);
}
...
...
dlls/comctl32/hotkey.c
View file @
f3d1893f
...
...
@@ -262,7 +262,7 @@ HOTKEY_EraseBackground (HOTKEY_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
inline
static
LRESULT
HOTKEY_GetFont
(
HOTKEY_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
infoPtr
->
hFont
;
return
(
LRESULT
)
infoPtr
->
hFont
;
}
static
LRESULT
...
...
dlls/comctl32/imagelist.c
View file @
f3d1893f
...
...
@@ -195,12 +195,13 @@ ImageList_Add (HIMAGELIST himl, HBITMAP hbmImage, HBITMAP hbmMask)
if
(
himl
->
hbmMask
)
{
HDC
hdcMask
,
hdcTemp
,
hOldBitmapMask
,
hOldBitmapTemp
;
HDC
hdcMask
,
hdcTemp
;
HBITMAP
hOldBitmapMask
,
hOldBitmapTemp
;
hdcMask
=
CreateCompatibleDC
(
0
);
hdcTemp
=
CreateCompatibleDC
(
0
);
hOldBitmapMask
=
(
HBITMAP
)
SelectObject
(
hdcMask
,
himl
->
hbmMask
);
hOldBitmapTemp
=
(
HBITMAP
)
SelectObject
(
hdcTemp
,
hbmMask
);
hOldBitmapMask
=
SelectObject
(
hdcMask
,
himl
->
hbmMask
);
hOldBitmapTemp
=
SelectObject
(
hdcTemp
,
hbmMask
);
BitBlt
(
hdcMask
,
nStartX
,
0
,
bmp
.
bmWidth
,
bmp
.
bmHeight
,
...
...
dlls/comctl32/ipaddress.c
View file @
f3d1893f
...
...
@@ -179,7 +179,7 @@ static LRESULT IPADDRESS_Create (HWND hwnd)
CreateWindowW
(
EDIT
,
NULL
,
WS_CHILD
|
WS_VISIBLE
|
ES_CENTER
,
edit
.
left
,
edit
.
top
,
edit
.
right
-
edit
.
left
,
edit
.
bottom
-
edit
.
top
,
hwnd
,
(
HMENU
)
1
,
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
(
HINSTANCE
)
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
SetPropA
(
part
->
EditHwnd
,
IP_SUBCLASS_PROP
,
hwnd
);
part
->
OrigProc
=
(
WNDPROC
)
SetWindowLongW
(
part
->
EditHwnd
,
GWL_WNDPROC
,
...
...
dlls/comctl32/progress.c
View file @
f3d1893f
...
...
@@ -314,7 +314,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
return
(
LRESULT
)
infoPtr
->
Font
;
case
WM_SETFONT
:
return
PROGRESS_SetFont
(
infoPtr
,
(
HFONT
)
wParam
,
(
BOOL
)
lParam
);
return
(
LRESULT
)
PROGRESS_SetFont
(
infoPtr
,
(
HFONT
)
wParam
,
(
BOOL
)
lParam
);
case
WM_PAINT
:
return
PROGRESS_Paint
(
infoPtr
,
(
HDC
)
wParam
);
...
...
dlls/comctl32/propsheet.c
View file @
f3d1893f
...
...
@@ -24,14 +24,16 @@
*/
#include <string.h>
#include "winbase.h"
#include "commctrl.h"
#include "prsht.h"
#include "winnls.h"
#include "comctl32.h"
#include "wine/debug.h"
#include "heap.h"
#include "wine/debug.h"
#include "wine/unicode.h"
/******************************************************************************
* Data structures
...
...
dlls/comctl32/status.c
View file @
f3d1893f
...
...
@@ -899,10 +899,9 @@ STATUSBAR_WMCreate (HWND hwnd, LPCREATESTRUCTA lpCreate)
if
(
dwStyle
&
SBT_TOOLTIPS
)
{
infoPtr
->
hwndToolTip
=
CreateWindowExW
(
0
,
TOOLTIPS_CLASSW
,
NULL
,
0
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
hwnd
,
0
,
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
hwnd
,
0
,
(
HINSTANCE
)
GetWindowLongW
(
hwnd
,
GWL_HINSTANCE
),
NULL
);
if
(
infoPtr
->
hwndToolTip
)
{
NMTOOLTIPSCREATED
nmttc
;
...
...
@@ -1188,7 +1187,7 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return
STATUSBAR_WMDestroy
(
infoPtr
);
case
WM_GETFONT
:
return
infoPtr
->
hFont
?
infoPtr
->
hFont
:
infoPtr
->
hDefaultFont
;
return
(
LRESULT
)(
infoPtr
->
hFont
?
infoPtr
->
hFont
:
infoPtr
->
hDefaultFont
)
;
case
WM_GETTEXT
:
return
STATUSBAR_WMGetText
(
infoPtr
,
(
INT
)
wParam
,
(
LPWSTR
)
lParam
);
...
...
dlls/comctl32/toolbar.c
View file @
f3d1893f
...
...
@@ -2765,7 +2765,7 @@ TOOLBAR_Customize (HWND hwnd)
if
(
!
(
template
=
(
LPVOID
)
LoadResource
(
COMCTL32_hModule
,
hRes
)))
return
FALSE
;
ret
=
DialogBoxIndirectParamA
(
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
),
ret
=
DialogBoxIndirectParamA
(
(
HINSTANCE
)
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
),
(
LPDLGTEMPLATEA
)
template
,
hwnd
,
(
DLGPROC
)
TOOLBAR_CustomizeDialogProc
,
...
...
@@ -3683,7 +3683,7 @@ TOOLBAR_ReplaceBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
lpReplace
->
hInstOld
,
lpReplace
->
nIDOld
,
lpReplace
->
hInstNew
,
lpReplace
->
nIDNew
,
lpReplace
->
nButtons
);
if
(
lpReplace
->
hInstOld
==
-
1
)
if
(
lpReplace
->
hInstOld
==
HINST_COMMCTRL
)
{
FIXME
(
"changing standard bitmaps not implemented
\n
"
);
return
FALSE
;
...
...
@@ -4703,7 +4703,7 @@ TOOLBAR_GetFont (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
return
infoPtr
->
hFont
;
return
(
LRESULT
)
infoPtr
->
hFont
;
}
...
...
dlls/comctl32/tooltips.c
View file @
f3d1893f
...
...
@@ -720,10 +720,12 @@ TOOLTIPS_AddToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* install subclassing hook */
if
(
toolPtr
->
uFlags
&
TTF_SUBCLASS
)
{
if
(
toolPtr
->
uFlags
&
TTF_IDISHWND
)
{
SetWindowSubclass
(
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
,
hwnd
);
SetWindowSubclass
((
HWND
)
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
,
(
DWORD_PTR
)
hwnd
);
}
else
{
SetWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
,
hwnd
);
SetWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
,
(
DWORD_PTR
)
hwnd
);
}
TRACE
(
"subclassing installed!
\n
"
);
}
...
...
@@ -795,10 +797,12 @@ TOOLTIPS_AddToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* install subclassing hook */
if
(
toolPtr
->
uFlags
&
TTF_SUBCLASS
)
{
if
(
toolPtr
->
uFlags
&
TTF_IDISHWND
)
{
SetWindowSubclass
(
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
,
hwnd
);
SetWindowSubclass
((
HWND
)
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
,
(
DWORD_PTR
)
hwnd
);
}
else
{
SetWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
,
hwnd
);
SetWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
,
(
DWORD_PTR
)
hwnd
);
}
TRACE
(
"subclassing installed!
\n
"
);
}
...
...
@@ -841,7 +845,7 @@ TOOLTIPS_DelToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* remove subclassing */
if
(
toolPtr
->
uFlags
&
TTF_SUBCLASS
)
{
if
(
toolPtr
->
uFlags
&
TTF_IDISHWND
)
{
RemoveWindowSubclass
(
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
);
RemoveWindowSubclass
(
(
HWND
)
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
);
}
else
{
RemoveWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
);
...
...
@@ -916,7 +920,7 @@ TOOLTIPS_DelToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* remove subclassing */
if
(
toolPtr
->
uFlags
&
TTF_SUBCLASS
)
{
if
(
toolPtr
->
uFlags
&
TTF_IDISHWND
)
{
RemoveWindowSubclass
(
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
);
RemoveWindowSubclass
(
(
HWND
)
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
);
}
else
{
RemoveWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
);
...
...
@@ -1966,7 +1970,7 @@ TOOLTIPS_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* remove subclassing */
if
(
toolPtr
->
uFlags
&
TTF_SUBCLASS
)
{
if
(
toolPtr
->
uFlags
&
TTF_IDISHWND
)
{
RemoveWindowSubclass
(
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
);
RemoveWindowSubclass
(
(
HWND
)
toolPtr
->
uId
,
TOOLTIPS_SubclassProc
,
1
);
}
else
{
RemoveWindowSubclass
(
toolPtr
->
hwnd
,
TOOLTIPS_SubclassProc
,
1
);
...
...
@@ -2007,7 +2011,7 @@ TOOLTIPS_GetFont (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
TOOLTIPS_INFO
*
infoPtr
=
TOOLTIPS_GetInfoPtr
(
hwnd
);
return
infoPtr
->
hFont
;
return
(
LRESULT
)
infoPtr
->
hFont
;
}
...
...
@@ -2222,7 +2226,7 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_
msg
.
message
=
uMsg
;
msg
.
wParam
=
wParam
;
msg
.
lParam
=
lParam
;
TOOLTIPS_RelayEvent
(
dwRef
,
0
,
(
LPARAM
)
&
msg
);
TOOLTIPS_RelayEvent
(
(
HWND
)
dwRef
,
0
,
(
LPARAM
)
&
msg
);
break
;
default:
...
...
dlls/comctl32/trackbar.c
View file @
f3d1893f
...
...
@@ -1560,7 +1560,7 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TRACKBAR_ClearTics
(
infoPtr
,
(
BOOL
)
wParam
);
case
TBM_GETBUDDY
:
return
wParam
?
infoPtr
->
hwndBuddyLA
:
infoPtr
->
hwndBuddyRB
;
return
(
LRESULT
)(
wParam
?
infoPtr
->
hwndBuddyLA
:
infoPtr
->
hwndBuddyRB
)
;
case
TBM_GETCHANNELRECT
:
return
TRACKBAR_GetChannelRect
(
infoPtr
,
(
LPRECT
)
lParam
);
...
...
dlls/comctl32/treeview.c
View file @
f3d1893f
...
...
@@ -1770,7 +1770,7 @@ static LRESULT
TREEVIEW_GetFont
(
TREEVIEW_INFO
*
infoPtr
)
{
TRACE
(
"%x
\n
"
,
infoPtr
->
hFont
);
return
infoPtr
->
hFont
;
return
(
LRESULT
)
infoPtr
->
hFont
;
}
...
...
@@ -2814,7 +2814,7 @@ TREEVIEW_Paint(TREEVIEW_INFO *infoPtr, WPARAM wParam)
rc
.
left
=
0
;
rc
.
top
=
0
;
rc
.
right
=
bitmap
.
bmWidth
;
rc
.
bottom
=
bitmap
.
bmHeight
;
TREEVIEW_EraseBackground
(
infoPtr
,
wParam
);
TREEVIEW_EraseBackground
(
infoPtr
,
(
HDC
)
wParam
);
}
}
else
...
...
@@ -3476,7 +3476,7 @@ TREEVIEW_Command(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
len
=
GetWindowTextA
(
infoPtr
->
hwndEdit
,
buffer
,
sizeof
(
buffer
));
/* Select font to get the right dimension of the string */
hFont
=
SendMessageA
(
infoPtr
->
hwndEdit
,
WM_GETFONT
,
0
,
0
);
hFont
=
(
HFONT
)
SendMessageA
(
infoPtr
->
hwndEdit
,
WM_GETFONT
,
0
,
0
);
if
(
hFont
!=
0
)
{
hOldFont
=
SelectObject
(
hdc
,
hFont
);
...
...
@@ -3526,7 +3526,7 @@ TREEVIEW_EditLabelA(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
HWND
hwndEdit
;
SIZE
sz
;
TREEVIEW_ITEM
*
editItem
=
hItem
;
HINSTANCE
hinst
=
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
);
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongA
(
hwnd
,
GWL_HINSTANCE
);
HDC
hdc
;
HFONT
hOldFont
=
0
;
TEXTMETRICA
textMetric
;
...
...
@@ -3589,8 +3589,8 @@ TREEVIEW_EditLabelA(TREEVIEW_INFO *infoPtr, HTREEITEM hItem)
SetWindowLongA
(
hwndEdit
,
GWL_STYLE
,
GetWindowLongA
(
hwndEdit
,
GWL_STYLE
)
|
WS_BORDER
);
SendMessageA
(
hwndEdit
,
WM_SETFONT
,
TREEVIEW_FontForItem
(
infoPtr
,
editItem
),
FALSE
);
SendMessageA
(
hwndEdit
,
WM_SETFONT
,
(
WPARAM
)
TREEVIEW_FontForItem
(
infoPtr
,
editItem
),
FALSE
);
infoPtr
->
wpEditOrig
=
(
WNDPROC
)
SetWindowLongA
(
hwndEdit
,
GWL_WNDPROC
,
(
DWORD
)
...
...
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