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
dfeb2d24
Commit
dfeb2d24
authored
May 19, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Introduce DesktopWindowProc driver entry point.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
336f0332
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
defwnd.c
dlls/win32u/defwnd.c
+4
-0
driver.c
dlls/win32u/driver.c
+7
-0
gdi_driver.h
include/wine/gdi_driver.h
+2
-1
No files found.
dlls/win32u/defwnd.c
View file @
dfeb2d24
...
...
@@ -417,6 +417,10 @@ LRESULT desktop_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
}
case
WM_NCCALCSIZE
:
return
0
;
default:
if
(
msg
>=
WM_USER
&&
hwnd
==
get_desktop_window
())
return
user_driver
->
pDesktopWindowProc
(
hwnd
,
msg
,
wparam
,
lparam
);
}
return
default_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
,
FALSE
);
...
...
dlls/win32u/driver.c
View file @
dfeb2d24
...
...
@@ -721,6 +721,11 @@ static SHORT nulldrv_VkKeyScanEx( WCHAR ch, HKL layout )
return
-
256
;
/* use default implementation */
}
static
LRESULT
nulldrv_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
return
default_window_proc
(
hwnd
,
msg
,
wparam
,
lparam
,
FALSE
);
}
static
void
nulldrv_DestroyCursorIcon
(
HCURSOR
cursor
)
{
}
...
...
@@ -1175,6 +1180,7 @@ static const struct user_driver_funcs lazy_load_driver =
/* windowing functions */
loaderdrv_CreateDesktopWindow
,
loaderdrv_CreateWindow
,
nulldrv_DesktopWindowProc
,
nulldrv_DestroyWindow
,
loaderdrv_FlashWindowEx
,
loaderdrv_GetDC
,
...
...
@@ -1247,6 +1253,7 @@ void CDECL __wine_set_user_driver( const struct user_driver_funcs *funcs, UINT v
SET_USER_FUNC
(
UpdateDisplayDevices
);
SET_USER_FUNC
(
CreateDesktopWindow
);
SET_USER_FUNC
(
CreateWindow
);
SET_USER_FUNC
(
DesktopWindowProc
);
SET_USER_FUNC
(
DestroyWindow
);
SET_USER_FUNC
(
FlashWindowEx
);
SET_USER_FUNC
(
GetDC
);
...
...
include/wine/gdi_driver.h
View file @
dfeb2d24
...
...
@@ -168,7 +168,7 @@ struct gdi_dc_funcs
};
/* increment this when you change the DC function table */
#define WINE_GDI_DRIVER_VERSION 7
8
#define WINE_GDI_DRIVER_VERSION 7
9
#define GDI_PRIORITY_NULL_DRV 0
/* null driver */
#define GDI_PRIORITY_FONT_DRV 100
/* any font driver */
...
...
@@ -299,6 +299,7 @@ struct user_driver_funcs
/* windowing functions */
BOOL
(
*
pCreateDesktopWindow
)(
HWND
);
BOOL
(
*
pCreateWindow
)(
HWND
);
LRESULT
(
*
pDesktopWindowProc
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
void
(
*
pDestroyWindow
)(
HWND
);
void
(
*
pFlashWindowEx
)(
FLASHWINFO
*
);
void
(
*
pGetDC
)(
HDC
,
HWND
,
HWND
,
const
RECT
*
,
const
RECT
*
,
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