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
6400dabf
Commit
6400dabf
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 edit class.
parent
05cf0ff2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
20 deletions
+16
-20
controls.h
dlls/user32/controls.h
+1
-0
edit.c
dlls/user32/edit.c
+2
-20
winproc.c
dlls/user32/winproc.c
+13
-0
No files found.
dlls/user32/controls.h
View file @
6400dabf
...
...
@@ -35,6 +35,7 @@ enum builtin_winprocs
{
WINPROC_BUTTON
=
0
,
WINPROC_COMBO
,
WINPROC_EDIT
,
NB_BUILTIN_WINPROCS
};
...
...
dlls/user32/edit.c
View file @
6400dabf
...
...
@@ -4971,24 +4971,6 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
/*********************************************************************
*
* EditWndProc (USER32.@)
*/
LRESULT
WINAPI
EditWndProcA
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
edit_proc
(
hWnd
,
uMsg
,
wParam
,
lParam
,
FALSE
);
}
/*********************************************************************
*
* EditWndProcW
*/
static
LRESULT
WINAPI
EditWndProcW
(
HWND
hWnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
edit_proc
(
hWnd
,
uMsg
,
wParam
,
lParam
,
TRUE
);
}
/*********************************************************************
* edit class descriptor
*/
static
const
WCHAR
editW
[]
=
{
'E'
,
'd'
,
'i'
,
't'
,
0
};
...
...
@@ -4996,8 +4978,8 @@ const struct builtin_class_descr EDIT_builtin_class =
{
editW
,
/* name */
CS_DBLCLKS
|
CS_PARENTDC
,
/* style */
EditWndProcA
,
/* procA */
EditWndProcW
,
/* procW */
NULL
,
/* procA */
BUILTIN_WINPROC
(
WINPROC_EDIT
),
/* procW */
#ifdef __i386__
sizeof
(
EDITSTATE
*
)
+
sizeof
(
HLOCAL16
),
/* extra */
#else
...
...
dlls/user32/winproc.c
View file @
6400dabf
...
...
@@ -55,11 +55,14 @@ static LRESULT WINAPI ButtonWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM
static
LRESULT
WINAPI
ButtonWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ComboWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ComboWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
LRESULT
WINAPI
EditWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
EditWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
WINDOWPROC
winproc_array
[
MAX_WINPROCS
]
=
{
{
ButtonWndProcA
,
ButtonWndProcW
},
/* WINPROC_BUTTON */
{
ComboWndProcA
,
ComboWndProcW
},
/* WINPROC_COMBO */
{
EditWndProcA
,
EditWndProcW
},
/* WINPROC_EDIT */
};
static
UINT
builtin_used
=
NB_BUILTIN_WINPROCS
;
...
...
@@ -1065,6 +1068,16 @@ static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPA
return
wow_handlers
.
combo_proc
(
hwnd
,
message
,
wParam
,
lParam
,
TRUE
);
}
LRESULT
WINAPI
EditWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
edit_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
FALSE
);
}
static
LRESULT
WINAPI
EditWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
edit_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