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
53393b0f
Commit
53393b0f
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 MDI client class.
parent
0cbf191a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
22 deletions
+16
-22
controls.h
dlls/user32/controls.h
+1
-0
mdi.c
dlls/user32/mdi.c
+2
-22
winproc.c
dlls/user32/winproc.c
+13
-0
No files found.
dlls/user32/controls.h
View file @
53393b0f
...
...
@@ -38,6 +38,7 @@ enum builtin_winprocs
WINPROC_DIALOG
,
WINPROC_EDIT
,
WINPROC_LISTBOX
,
WINPROC_MDICLIENT
,
WINPROC_SCROLLBAR
,
WINPROC_STATIC
,
NB_BUILTIN_WINPROCS
...
...
dlls/user32/mdi.c
View file @
53393b0f
...
...
@@ -150,8 +150,6 @@ static LONG MDI_ChildActivate( HWND, HWND );
static
LRESULT
MDI_RefreshMenu
(
MDICLIENTINFO
*
);
static
HWND
MDI_MoreWindowsDialog
(
HWND
);
static
LRESULT
WINAPI
MDIClientWndProcA
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
MDIClientWndProcW
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
);
/* -------- Miscellaneous service functions ----------
*
...
...
@@ -188,8 +186,8 @@ const struct builtin_class_descr MDICLIENT_builtin_class =
{
mdiclientW
,
/* name */
0
,
/* style */
MDIClientWndProcA
,
/* procA */
MDIClientWndProcW
,
/* procW */
NULL
,
/* procA */
BUILTIN_WINPROC
(
WINPROC_MDICLIENT
),
/* procW */
sizeof
(
MDICLIENTINFO
),
/* extra */
IDC_ARROW
,
/* cursor */
(
HBRUSH
)(
COLOR_APPWORKSPACE
+
1
)
/* brush */
...
...
@@ -1272,24 +1270,6 @@ LRESULT MDIClientWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
}
/***********************************************************************
* MDIClientWndProcA
*/
static
LRESULT
WINAPI
MDIClientWndProcA
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
IsWindow
(
hwnd
))
return
0
;
return
wow_handlers
.
mdiclient_proc
(
hwnd
,
message
,
wParam
,
lParam
,
FALSE
);
}
/***********************************************************************
* MDIClientWndProcW
*/
static
LRESULT
WINAPI
MDIClientWndProcW
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
!
IsWindow
(
hwnd
))
return
0
;
return
wow_handlers
.
mdiclient_proc
(
hwnd
,
message
,
wParam
,
lParam
,
TRUE
);
}
/***********************************************************************
* DefFrameProcA (USER32.@)
*/
LRESULT
WINAPI
DefFrameProcA
(
HWND
hwnd
,
HWND
hwndMDIClient
,
...
...
dlls/user32/winproc.c
View file @
53393b0f
...
...
@@ -57,6 +57,8 @@ LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
static
LRESULT
WINAPI
EditWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ListBoxWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
ListBoxWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
MDIClientWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
LRESULT
WINAPI
MDIClientWndProcW
(
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
);
...
...
@@ -69,6 +71,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] =
{
DefDlgProcA
,
DefDlgProcW
},
/* WINPROC_DIALOG */
{
EditWndProcA
,
EditWndProcW
},
/* WINPROC_EDIT */
{
ListBoxWndProcA
,
ListBoxWndProcW
},
/* WINPROC_LISTBOX */
{
MDIClientWndProcA
,
MDIClientWndProcW
},
/* WINPROC_MDICLIENT */
{
ScrollBarWndProcA
,
ScrollBarWndProcW
},
/* WINPROC_SCROLLBAR */
{
StaticWndProcA
,
StaticWndProcW
},
/* WINPROC_STATIC */
};
...
...
@@ -1096,6 +1099,16 @@ static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARA
return
wow_handlers
.
listbox_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
TRUE
);
}
static
LRESULT
WINAPI
MDIClientWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
mdiclient_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
FALSE
);
}
static
LRESULT
WINAPI
MDIClientWndProcW
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
mdiclient_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
TRUE
);
}
static
LRESULT
WINAPI
ScrollBarWndProcA
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
return
wow_handlers
.
scrollbar_proc
(
hwnd
,
msg
,
wParam
,
lParam
,
FALSE
);
...
...
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