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
fb202264
Commit
fb202264
authored
Dec 11, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Split the handling of the 16-bit messages out of the static winproc.
parent
11ed5da3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
static.c
dlls/user32/static.c
+19
-8
No files found.
dlls/user32/static.c
View file @
fb202264
...
...
@@ -572,9 +572,6 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
case
STM_GETIMAGE
:
return
(
LRESULT
)
STATIC_GetImage
(
hwnd
,
wParam
,
full_style
);
case
STM_GETICON16
:
return
HICON_16
(
STATIC_GetImage
(
hwnd
,
IMAGE_ICON
,
full_style
));
case
STM_GETICON
:
return
(
LRESULT
)
STATIC_GetImage
(
hwnd
,
IMAGE_ICON
,
full_style
);
...
...
@@ -597,9 +594,6 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
STATIC_TryPaintFcn
(
hwnd
,
full_style
);
break
;
case
STM_SETICON16
:
wParam
=
(
WPARAM
)
HICON_32
(
(
HICON16
)
wParam
);
/* fall through */
case
STM_SETICON
:
lResult
=
(
LRESULT
)
STATIC_SetIcon
(
hwnd
,
(
HICON
)
wParam
,
full_style
);
STATIC_TryPaintFcn
(
hwnd
,
full_style
);
...
...
@@ -613,12 +607,29 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
}
/***********************************************************************
* StaticWndProc_wrapper16
*/
static
LRESULT
StaticWndProc_wrapper16
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
,
BOOL
unicode
)
{
switch
(
msg
)
{
case
STM_SETICON16
:
wParam
=
(
WPARAM
)
HICON_32
(
(
HICON16
)
wParam
);
return
StaticWndProc_common
(
hwnd
,
STM_SETICON
,
wParam
,
lParam
,
FALSE
);
case
STM_GETICON16
:
return
HICON_16
(
StaticWndProc_common
(
hwnd
,
STM_GETICON
,
wParam
,
lParam
,
FALSE
));
default:
return
StaticWndProc_common
(
hwnd
,
msg
,
wParam
,
lParam
,
unicode
);
}
}
/***********************************************************************
* StaticWndProcA
*/
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
IsWindow
(
hWnd
))
return
0
;
return
StaticWndProc_
common
(
hWnd
,
uMsg
,
wParam
,
lParam
,
FALSE
);
return
StaticWndProc_
wrapper16
(
hWnd
,
uMsg
,
wParam
,
lParam
,
FALSE
);
}
/***********************************************************************
...
...
@@ -627,7 +638,7 @@ static LRESULT WINAPI StaticWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
IsWindow
(
hWnd
))
return
0
;
return
StaticWndProc_
common
(
hWnd
,
uMsg
,
wParam
,
lParam
,
TRUE
);
return
StaticWndProc_
wrapper16
(
hWnd
,
uMsg
,
wParam
,
lParam
,
TRUE
);
}
static
void
STATIC_PaintOwnerDrawfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
)
...
...
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