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
817dca10
Commit
817dca10
authored
Jun 10, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move WM_NCACTIVATE implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
9f03d8f3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
controls.h
dlls/user32/controls.h
+0
-1
defwnd.c
dlls/user32/defwnd.c
+0
-3
nonclient.c
dlls/user32/nonclient.c
+0
-0
defwnd.c
dlls/win32u/defwnd.c
+27
-0
No files found.
dlls/user32/controls.h
View file @
817dca10
...
...
@@ -123,7 +123,6 @@ extern void MENU_EndMenu(HWND) DECLSPEC_HIDDEN;
extern
HMENU
MENU_GetSysMenu
(
HWND
hWnd
,
HMENU
hPopupMenu
)
DECLSPEC_HIDDEN
;
/* nonclient area */
extern
LRESULT
NC_HandleNCActivate
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
DECLSPEC_HIDDEN
;
extern
void
NC_HandleNCCalcSize
(
HWND
hwnd
,
WPARAM
wParam
,
RECT
*
winRect
)
DECLSPEC_HIDDEN
;
extern
LRESULT
NC_HandleNCHitTest
(
HWND
hwnd
,
POINT
pt
)
DECLSPEC_HIDDEN
;
extern
LRESULT
NC_HandleNCLButtonDown
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
DECLSPEC_HIDDEN
;
...
...
dlls/user32/defwnd.c
View file @
817dca10
...
...
@@ -253,9 +253,6 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
),
0
,
hwnd
,
NULL
);
return
0
;
case
WM_NCACTIVATE
:
return
NC_HandleNCActivate
(
hwnd
,
wParam
,
lParam
);
case
WM_PRINT
:
DEFWND_Print
(
hwnd
,
(
HDC
)
wParam
,
lParam
);
return
0
;
...
...
dlls/user32/nonclient.c
View file @
817dca10
This diff is collapsed.
Click to expand it.
dlls/win32u/defwnd.c
View file @
817dca10
...
...
@@ -1463,6 +1463,30 @@ static LRESULT handle_nc_paint( HWND hwnd , HRGN clip )
return
0
;
}
static
LRESULT
handle_nc_activate
(
HWND
hwnd
,
WPARAM
wparam
,
LPARAM
lparam
)
{
/* Lotus Notes draws menu descriptions in the caption of its main
* window. When it wants to restore original "system" view, it just
* sends WM_NCACTIVATE message to itself. Any optimizations here in
* attempt to minimize redrawings lead to a not restored caption.
*/
if
(
wparam
)
win_set_flags
(
hwnd
,
WIN_NCACTIVATED
,
0
);
else
win_set_flags
(
hwnd
,
0
,
WIN_NCACTIVATED
);
/* This isn't documented but is reproducible in at least XP SP2 and
* Outlook 2007 depends on it
*/
if
(
lparam
!=
-
1
)
{
nc_paint
(
hwnd
,
(
HRGN
)
1
);
if
(
NtUserGetAncestor
(
hwnd
,
GA_PARENT
)
==
get_desktop_window
())
NtUserPostMessage
(
get_desktop_window
(),
WM_PARENTNOTIFY
,
WM_NCACTIVATE
,
(
LPARAM
)
hwnd
);
}
return
TRUE
;
}
LRESULT
default_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
,
BOOL
ansi
)
{
LRESULT
result
=
0
;
...
...
@@ -1493,6 +1517,9 @@ LRESULT default_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
case
WM_NCPAINT
:
return
handle_nc_paint
(
hwnd
,
(
HRGN
)
wparam
);
case
WM_NCACTIVATE
:
return
handle_nc_activate
(
hwnd
,
wparam
,
lparam
);
case
WM_WINDOWPOSCHANGING
:
return
handle_window_pos_changing
(
hwnd
,
(
WINDOWPOS
*
)
lparam
);
...
...
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