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
80a09a78
Commit
80a09a78
authored
Dec 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Pre-allocate the window procedure for the static class.
parent
1e43d197
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
22 deletions
+18
-22
controls.h
dlls/user32/controls.h
+1
-0
static.c
dlls/user32/static.c
+4
-22
winproc.c
dlls/user32/winproc.c
+13
-0
No files found.
dlls/user32/controls.h
View file @
80a09a78
...
...
@@ -38,6 +38,7 @@ enum builtin_winprocs
WINPROC_EDIT
,
WINPROC_LISTBOX
,
WINPROC_SCROLLBAR
,
WINPROC_STATIC
,
NB_BUILTIN_WINPROCS
};
...
...
dlls/user32/static.c
View file @
80a09a78
...
...
@@ -60,8 +60,6 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style );
static
void
STATIC_PaintBitmapfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
);
static
void
STATIC_PaintEnhMetafn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
);
static
void
STATIC_PaintEtchedfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
);
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
COLORREF
color_3dshadow
,
color_3ddkshadow
,
color_3dhighlight
;
...
...
@@ -104,8 +102,8 @@ const struct builtin_class_descr STATIC_builtin_class =
{
staticW
,
/* name */
CS_DBLCLKS
|
CS_PARENTDC
,
/* style */
StaticWndProcA
,
/* procA */
StaticWndProcW
,
/* procW */
NULL
,
/* procA */
BUILTIN_WINPROC
(
WINPROC_STATIC
),
/* procW */
STATIC_EXTRA_BYTES
,
/* extra */
IDC_ARROW
,
/* cursor */
0
/* brush */
...
...
@@ -405,6 +403,8 @@ LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
LONG
full_style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
LONG
style
=
full_style
&
SS_TYPEMASK
;
if
(
!
IsWindow
(
hwnd
))
return
0
;
switch
(
uMsg
)
{
case
WM_CREATE
:
...
...
@@ -604,24 +604,6 @@ LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
return
lResult
;
}
/***********************************************************************
* StaticWndProcA
*/
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
IsWindow
(
hWnd
))
return
0
;
return
wow_handlers
.
static_proc
(
hWnd
,
uMsg
,
wParam
,
lParam
,
FALSE
);
}
/***********************************************************************
* StaticWndProcW
*/
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
IsWindow
(
hWnd
))
return
0
;
return
wow_handlers
.
static_proc
(
hWnd
,
uMsg
,
wParam
,
lParam
,
TRUE
);
}
static
void
STATIC_PaintOwnerDrawfn
(
HWND
hwnd
,
HDC
hdc
,
DWORD
style
)
{
DRAWITEMSTRUCT
dis
;
...
...
dlls/user32/winproc.c
View file @
80a09a78
...
...
@@ -59,6 +59,8 @@ static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARA
static
LRESULT
WINAPI
ListBoxWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ScrollBarWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ScrollBarWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
WINDOWPROC
winproc_array
[
MAX_WINPROCS
]
=
{
...
...
@@ -67,6 +69,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] =
{
EditWndProcA
,
EditWndProcW
},
/* WINPROC_EDIT */
{
ListBoxWndProcA
,
ListBoxWndProcW
},
/* WINPROC_LISTBOX */
{
ScrollBarWndProcA
,
ScrollBarWndProcW
},
/* WINPROC_SCROLLBAR */
{
StaticWndProcA
,
StaticWndProcW
},
/* WINPROC_STATIC */
};
static
UINT
builtin_used
=
NB_BUILTIN_WINPROCS
;
...
...
@@ -1102,6 +1105,16 @@ static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPA
return
wow_handlers
.
scrollbar_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
TRUE
);
}
static
LRESULT
WINAPI
StaticWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
static_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
FALSE
);
}
static
LRESULT
WINAPI
StaticWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
static_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
TRUE
);
}
/**********************************************************************
* UserRegisterWowHandlers (USER32.@)
...
...
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