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
8bdfe2be
Commit
8bdfe2be
authored
Nov 28, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move NtUserGetWindowDC implementation from user32.
parent
be6f5ed9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
14 deletions
+23
-14
painting.c
dlls/user32/painting.c
+0
-9
user32.spec
dlls/user32/user32.spec
+1
-1
dce.c
dlls/win32u/dce.c
+8
-0
defwnd.c
dlls/win32u/defwnd.c
+3
-3
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
syscall.h
dlls/wow64win/syscall.h
+1
-0
user.c
dlls/wow64win/user.c
+7
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/painting.c
View file @
8bdfe2be
...
...
@@ -23,15 +23,6 @@
/***********************************************************************
* GetWindowDC (USER32.@)
*/
HDC
WINAPI
GetWindowDC
(
HWND
hwnd
)
{
return
NtUserGetDCEx
(
hwnd
,
0
,
DCX_USESTYLE
|
DCX_WINDOW
);
}
/***********************************************************************
* UpdateWindow (USER32.@)
*/
BOOL
WINAPI
UpdateWindow
(
HWND
hwnd
)
...
...
dlls/user32/user32.spec
View file @
8bdfe2be
...
...
@@ -405,7 +405,7 @@
# @ stub GetWinStationInfo
@ stdcall GetWindow(long long)
@ stdcall GetWindowContextHelpId(long)
@ stdcall GetWindowDC(long)
@ stdcall GetWindowDC(long)
NtUserGetWindowDC
@ stdcall GetWindowDisplayAffinity(long ptr)
@ stdcall GetWindowDpiAwarenessContext(long)
@ stdcall GetWindowInfo(long ptr)
...
...
dlls/win32u/dce.c
View file @
8bdfe2be
...
...
@@ -1038,6 +1038,14 @@ HDC WINAPI NtUserGetDC( HWND hwnd )
return
NtUserGetDCEx
(
hwnd
,
0
,
DCX_USESTYLE
);
}
/***********************************************************************
* NtUserGetWindowDC (win32u.@)
*/
HDC
WINAPI
NtUserGetWindowDC
(
HWND
hwnd
)
{
return
NtUserGetDCEx
(
hwnd
,
0
,
DCX_USESTYLE
|
DCX_WINDOW
);
}
/**********************************************************************
* NtUserWindowFromDC (win32u.@)
*/
...
...
dlls/win32u/defwnd.c
View file @
8bdfe2be
...
...
@@ -2067,7 +2067,7 @@ LRESULT handle_nc_hit_test( HWND hwnd, POINT pt )
static
void
track_min_max_box
(
HWND
hwnd
,
WORD
wparam
)
{
HDC
hdc
=
NtUserGet
DCEx
(
hwnd
,
0
,
DCX_USESTYLE
|
DCX_WINDOW
);
HDC
hdc
=
NtUserGet
WindowDC
(
hwnd
);
DWORD
style
=
get_window_long
(
hwnd
,
GWL_STYLE
);
HMENU
sys_menu
=
NtUserGetSystemMenu
(
hwnd
,
FALSE
);
void
(
*
paint_button
)(
HWND
,
HDC
,
BOOL
,
BOOL
);
...
...
@@ -2141,7 +2141,7 @@ static void track_close_button( HWND hwnd, WPARAM wparam, LPARAM lparam )
/* If the close item of the sysmenu is disabled or not present do nothing */
if
((
state
&
MF_DISABLED
)
||
(
state
&
MF_GRAYED
)
||
state
==
0xFFFFFFFF
)
return
;
hdc
=
NtUserGet
DCEx
(
hwnd
,
0
,
DCX_USESTYLE
|
DCX_WINDOW
);
hdc
=
NtUserGet
WindowDC
(
hwnd
);
NtUserSetCapture
(
hwnd
);
draw_close_button
(
hwnd
,
hdc
,
TRUE
,
FALSE
);
...
...
@@ -2191,7 +2191,7 @@ static LRESULT handle_nc_lbutton_down( HWND hwnd, WPARAM wparam, LPARAM lparam )
case
HTSYSMENU
:
if
(
style
&
WS_SYSMENU
)
{
HDC
hdc
=
NtUserGet
DCEx
(
hwnd
,
0
,
DCX_USESTYLE
|
DCX_WINDOW
);
HDC
hdc
=
NtUserGet
WindowDC
(
hwnd
);
draw_nc_sys_button
(
hwnd
,
hdc
,
TRUE
);
NtUserReleaseDC
(
hwnd
,
hdc
);
send_message
(
hwnd
,
WM_SYSCOMMAND
,
SC_MOUSEMENU
+
HTSYSMENU
,
lparam
);
...
...
dlls/win32u/syscall.c
View file @
8bdfe2be
...
...
@@ -209,6 +209,7 @@ static void * const syscalls[] =
NtUserGetUpdateRect
,
NtUserGetUpdateRgn
,
NtUserGetUpdatedClipboardFormats
,
NtUserGetWindowDC
,
NtUserGetWindowPlacement
,
NtUserGetWindowRgnEx
,
NtUserHideCaret
,
...
...
dlls/win32u/win32u.spec
View file @
8bdfe2be
...
...
@@ -1009,7 +1009,7 @@
@ stub NtUserGetWindowBand
@ stub NtUserGetWindowCompositionAttribute
@ stub NtUserGetWindowCompositionInfo
@ st
ub NtUserGetWindowDC
@ st
dcall -syscall NtUserGetWindowDC(long)
@ stub NtUserGetWindowDisplayAffinity
@ stub NtUserGetWindowFeedbackSetting
@ stub NtUserGetWindowGroupId
...
...
dlls/wow64win/syscall.h
View file @
8bdfe2be
...
...
@@ -195,6 +195,7 @@
SYSCALL_ENTRY( NtUserGetUpdateRect ) \
SYSCALL_ENTRY( NtUserGetUpdateRgn ) \
SYSCALL_ENTRY( NtUserGetUpdatedClipboardFormats ) \
SYSCALL_ENTRY( NtUserGetWindowDC ) \
SYSCALL_ENTRY( NtUserGetWindowPlacement ) \
SYSCALL_ENTRY( NtUserGetWindowRgnEx ) \
SYSCALL_ENTRY( NtUserHideCaret ) \
...
...
dlls/wow64win/user.c
View file @
8bdfe2be
...
...
@@ -2570,6 +2570,13 @@ NTSTATUS WINAPI wow64_NtUserGetUpdatedClipboardFormats( UINT *args )
return
NtUserGetUpdatedClipboardFormats
(
formats
,
size
,
out_size
);
}
NTSTATUS
WINAPI
wow64_NtUserGetWindowDC
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
return
HandleToUlong
(
NtUserGetWindowDC
(
hwnd
));
}
NTSTATUS
WINAPI
wow64_NtUserGetWindowPlacement
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
...
...
include/ntuser.h
View file @
8bdfe2be
...
...
@@ -777,6 +777,7 @@ BOOL WINAPI NtUserGetTitleBarInfo( HWND hwnd, TITLEBARINFO *info );
INT
WINAPI
NtUserGetUpdateRgn
(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
erase
);
BOOL
WINAPI
NtUserGetUpdatedClipboardFormats
(
UINT
*
formats
,
UINT
size
,
UINT
*
out_size
);
BOOL
WINAPI
NtUserGetUpdateRect
(
HWND
hwnd
,
RECT
*
rect
,
BOOL
erase
);
HDC
WINAPI
NtUserGetWindowDC
(
HWND
hwnd
);
BOOL
WINAPI
NtUserGetWindowPlacement
(
HWND
hwnd
,
WINDOWPLACEMENT
*
placement
);
int
WINAPI
NtUserGetWindowRgnEx
(
HWND
hwnd
,
HRGN
hrgn
,
UINT
unk
);
BOOL
WINAPI
NtUserHideCaret
(
HWND
hwnd
);
...
...
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