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
3765b330
Commit
3765b330
authored
Feb 19, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Paint title bars for minimized windows.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
04707a34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
24 deletions
+10
-24
nonclient.c
dlls/user32/nonclient.c
+10
-24
No files found.
dlls/user32/nonclient.c
View file @
3765b330
...
...
@@ -430,8 +430,6 @@ static void NC_GetInsideRect( HWND hwnd, enum coords_relative relative, RECT *re
{
WIN_GetRectangles
(
hwnd
,
relative
,
rect
,
NULL
);
if
(
style
&
WS_MINIMIZE
)
return
;
/* Remove frame from rectangle */
if
(
HAS_THICKFRAME
(
style
,
ex_style
))
{
...
...
@@ -955,9 +953,6 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip )
flags
=
wndPtr
->
flags
;
WIN_ReleasePtr
(
wndPtr
);
if
(
dwStyle
&
WS_MINIMIZE
||
!
WIN_IsWindowDrawable
(
hwnd
,
0
))
return
;
/* Nothing to do */
active
=
flags
&
WIN_NCACTIVATED
;
TRACE
(
"%p %d
\n
"
,
hwnd
,
active
);
...
...
@@ -1065,10 +1060,7 @@ LRESULT NC_HandleNCPaint( HWND hwnd , HRGN clip)
if
(
dwStyle
&
WS_VISIBLE
)
{
if
(
dwStyle
&
WS_MINIMIZE
)
WINPOS_RedrawIconTitle
(
hwnd
);
else
NC_DoNCPaint
(
hwnd
,
clip
);
NC_DoNCPaint
(
hwnd
,
clip
);
if
(
parent
==
GetDesktopWindow
())
PostMessageW
(
parent
,
WM_PARENTNOTIFY
,
WM_NCPAINT
,
(
LPARAM
)
hwnd
);
...
...
@@ -1097,10 +1089,7 @@ LRESULT NC_HandleNCActivate( HWND hwnd, WPARAM wParam, LPARAM lParam )
*/
if
(
lParam
!=
-
1
)
{
if
(
IsIconic
(
hwnd
))
WINPOS_RedrawIconTitle
(
hwnd
);
else
NC_DoNCPaint
(
hwnd
,
(
HRGN
)
1
);
NC_DoNCPaint
(
hwnd
,
(
HRGN
)
1
);
if
(
GetAncestor
(
hwnd
,
GA_PARENT
)
==
GetDesktopWindow
())
PostMessageW
(
GetDesktopWindow
(),
WM_PARENTNOTIFY
,
WM_NCACTIVATE
,
(
LPARAM
)
hwnd
);
...
...
@@ -1372,17 +1361,14 @@ LRESULT NC_HandleNCLButtonDown( HWND hwnd, WPARAM wParam, LPARAM lParam )
}
case
HTSYSMENU
:
if
(
style
&
WS_SYSMENU
)
{
if
(
!
(
style
&
WS_MINIMIZE
)
)
{
HDC
hDC
=
GetWindowDC
(
hwnd
);
NC_DrawSysButton
(
hwnd
,
hDC
,
TRUE
);
ReleaseDC
(
hwnd
,
hDC
);
}
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_MOUSEMENU
+
HTSYSMENU
,
lParam
);
}
break
;
if
(
style
&
WS_SYSMENU
)
{
HDC
hDC
=
GetWindowDC
(
hwnd
);
NC_DrawSysButton
(
hwnd
,
hDC
,
TRUE
);
ReleaseDC
(
hwnd
,
hDC
);
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_MOUSEMENU
+
HTSYSMENU
,
lParam
);
}
break
;
case
HTMENU
:
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_MOUSEMENU
,
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