Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8d9f395
Commit
b8d9f395
authored
May 25, 2006
by
Juris Smotrovs
Committed by
Alexandre Julliard
Jun 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Send WM_SIZE when window changes state between restored/min/maximized.
parent
7b6fbd28
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
defwnd.c
dlls/user/defwnd.c
+1
-1
msg.c
dlls/user/tests/msg.c
+13
-3
winpos.c
dlls/x11drv/winpos.c
+1
-2
winpos.h
include/winpos.h
+1
-0
No files found.
dlls/user/defwnd.c
View file @
b8d9f395
...
...
@@ -65,7 +65,7 @@ static void DEFWND_HandleWindowPosChanged( HWND hwnd, const WINDOWPOS *winpos )
if
(
!
(
winpos
->
flags
&
SWP_NOCLIENTMOVE
))
SendMessageW
(
hwnd
,
WM_MOVE
,
0
,
MAKELONG
(
rect
.
left
,
rect
.
top
));
if
(
!
(
winpos
->
flags
&
SWP_NOCLIENTSIZE
))
if
(
!
(
winpos
->
flags
&
SWP_NOCLIENTSIZE
)
||
(
winpos
->
flags
&
SWP_STATECHANGED
)
)
{
WPARAM
wp
=
SIZE_RESTORED
;
if
(
IsZoomed
(
hwnd
))
wp
=
SIZE_MAXIMIZED
;
...
...
dlls/user/tests/msg.c
View file @
b8d9f395
...
...
@@ -1435,9 +1435,19 @@ static void ok_sequence_(const struct message *expected, const char *context, in
"%s: in msg 0x%04x expecting lParam 0x%lx got 0x%lx
\n
"
,
context
,
expected
->
message
,
expected
->
lParam
,
actual
->
lParam
);
}
ok_
(
file
,
line
)
((
expected
->
flags
&
defwinproc
)
==
(
actual
->
flags
&
defwinproc
),
"%s: the msg 0x%04x should %shave been sent by DefWindowProc
\n
"
,
context
,
expected
->
message
,
(
expected
->
flags
&
defwinproc
)
?
""
:
"NOT "
);
if
((
expected
->
flags
&
defwinproc
)
!=
(
actual
->
flags
&
defwinproc
)
&&
todo
)
{
todo_wine
{
failcount
++
;
ok_
(
file
,
line
)
(
FALSE
,
"%s: in msg 0x%04x expecting lParam 0x%lx got 0x%lx
\n
"
,
context
,
expected
->
message
,
expected
->
lParam
,
actual
->
lParam
);
}
}
else
ok_
(
file
,
line
)
((
expected
->
flags
&
defwinproc
)
==
(
actual
->
flags
&
defwinproc
),
"%s: the msg 0x%04x should %shave been sent by DefWindowProc
\n
"
,
context
,
expected
->
message
,
(
expected
->
flags
&
defwinproc
)
?
""
:
"NOT "
);
ok_
(
file
,
line
)
((
expected
->
flags
&
beginpaint
)
==
(
actual
->
flags
&
beginpaint
),
"%s: the msg 0x%04x should %shave been sent by BeginPaint
\n
"
,
context
,
expected
->
message
,
(
expected
->
flags
&
beginpaint
)
?
""
:
"NOT "
);
...
...
dlls/x11drv/winpos.c
View file @
b8d9f395
...
...
@@ -1031,9 +1031,8 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
{
/* it appears that Windows always adds an undocumented 0x8000
* flag if the state of a window changes.
* FIXME: real SWP_xxxx name?
*/
swp
|=
0x8000
;
swp
|=
SWP_STATECHANGED
;
}
}
...
...
include/winpos.h
View file @
b8d9f395
...
...
@@ -30,6 +30,7 @@
/* undocumented SWP flags - from SDK 3.1 */
#define SWP_NOCLIENTSIZE 0x0800
#define SWP_NOCLIENTMOVE 0x1000
#define SWP_STATECHANGED 0x8000
extern
BOOL
WINPOS_RedrawIconTitle
(
HWND
hWnd
);
extern
BOOL
WINPOS_ShowIconTitle
(
HWND
hwnd
,
BOOL
bShow
);
...
...
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