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
f32bcd8f
Commit
f32bcd8f
authored
Jun 17, 2005
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jun 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ShowOwnedPopups and WM_SHOWWINDOW should handle non-WS_POPUP style
windows as well.
parent
c6689520
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
27 deletions
+34
-27
defwnd.c
dlls/user/defwnd.c
+14
-1
win.c
dlls/user/win.c
+20
-26
No files found.
dlls/user/defwnd.c
View file @
f32bcd8f
...
...
@@ -580,11 +580,24 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
case
WM_SHOWWINDOW
:
{
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
WND
*
pWnd
;
if
(
!
lParam
)
return
0
;
/* sent from ShowWindow */
if
(
!
(
style
&
WS_POPUP
))
return
0
;
if
((
style
&
WS_VISIBLE
)
&&
wParam
)
return
0
;
if
(
!
(
style
&
WS_VISIBLE
)
&&
!
wParam
)
return
0
;
if
(
!
GetWindow
(
hwnd
,
GW_OWNER
))
return
0
;
if
(
!
(
pWnd
=
WIN_GetPtr
(
hwnd
)))
return
0
;
if
(
pWnd
==
WND_OTHER_PROCESS
)
return
0
;
if
(
wParam
)
{
if
(
!
(
pWnd
->
flags
&
WIN_NEEDS_SHOW_OWNEDPOPUP
))
{
WIN_ReleasePtr
(
pWnd
);
return
0
;
}
pWnd
->
flags
&=
~
WIN_NEEDS_SHOW_OWNEDPOPUP
;
}
else
pWnd
->
flags
|=
WIN_NEEDS_SHOW_OWNEDPOPUP
;
WIN_ReleasePtr
(
pWnd
);
ShowWindow
(
hwnd
,
wParam
?
SW_SHOWNOACTIVATE
:
SW_HIDE
);
break
;
}
...
...
dlls/user/win.c
View file @
f32bcd8f
...
...
@@ -2686,36 +2686,30 @@ BOOL WINAPI ShowOwnedPopups( HWND owner, BOOL fShow )
if
(
GetWindow
(
win_array
[
count
],
GW_OWNER
)
!=
owner
)
continue
;
if
(
!
(
pWnd
=
WIN_GetPtr
(
win_array
[
count
]
)))
continue
;
if
(
pWnd
==
WND_OTHER_PROCESS
)
continue
;
if
(
pWnd
->
dwStyle
&
WS_POPUP
)
if
(
fShow
)
{
if
(
fShow
)
if
(
pWnd
->
flags
&
WIN_NEEDS_SHOW_OWNEDPOPUP
)
{
if
(
pWnd
->
flags
&
WIN_NEEDS_SHOW_OWNEDPOPUP
)
{
pWnd
->
flags
&=
~
WIN_NEEDS_SHOW_OWNEDPOPUP
;
WIN_ReleasePtr
(
pWnd
);
/* In Windows, ShowOwnedPopups(TRUE) generates
* WM_SHOWWINDOW messages with SW_PARENTOPENING,
* regardless of the state of the owner
*/
SendMessageW
(
win_array
[
count
],
WM_SHOWWINDOW
,
SW_SHOW
,
SW_PARENTOPENING
);
continue
;
}
WIN_ReleasePtr
(
pWnd
);
/* In Windows, ShowOwnedPopups(TRUE) generates
* WM_SHOWWINDOW messages with SW_PARENTOPENING,
* regardless of the state of the owner
*/
SendMessageW
(
win_array
[
count
],
WM_SHOWWINDOW
,
SW_SHOWNORMAL
,
SW_PARENTOPENING
);
continue
;
}
else
}
else
{
if
(
pWnd
->
dwStyle
&
WS_VISIBLE
)
{
if
(
pWnd
->
dwStyle
&
WS_VISIBLE
)
{
pWnd
->
flags
|=
WIN_NEEDS_SHOW_OWNEDPOPUP
;
WIN_ReleasePtr
(
pWnd
);
/* In Windows, ShowOwnedPopups(FALSE) generates
* WM_SHOWWINDOW messages with SW_PARENTCLOSING,
* regardless of the state of the owner
*/
SendMessageW
(
win_array
[
count
],
WM_SHOWWINDOW
,
SW_HIDE
,
SW_PARENTCLOSING
);
continue
;
}
WIN_ReleasePtr
(
pWnd
);
/* In Windows, ShowOwnedPopups(FALSE) generates
* WM_SHOWWINDOW messages with SW_PARENTCLOSING,
* regardless of the state of the owner
*/
SendMessageW
(
win_array
[
count
],
WM_SHOWWINDOW
,
SW_HIDE
,
SW_PARENTCLOSING
);
continue
;
}
}
WIN_ReleasePtr
(
pWnd
);
...
...
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