Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
3be8e3b7
Commit
3be8e3b7
authored
25 years ago
by
Eric Pouech
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Properly handling cases like calling SetWindowPos while processing
WM_NCCREATE.
parent
dc7c1b87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
documentation/gui
+1
-1
1 addition, 1 deletion
documentation/gui
windows/win.c
+9
-3
9 additions, 3 deletions
windows/win.c
windows/winpos.c
+7
-2
7 additions, 2 deletions
windows/winpos.c
with
17 additions
and
6 deletions
documentation/gui
+
1
−
1
View file @
3be8e3b7
...
...
@@ -54,7 +54,7 @@ Messages sent:
CreateWindow (for child window, not initially visible)
Messages sent:
WM_NCCREATE
WM_NCCREATE
(Note that win->parent->child will not contain win. link is done after sucessfull WM_NCCREATE)
WM_NCCALCSIZE (wParam=0)
WM_CREATE
WM_SIZE
...
...
This diff is collapsed.
Click to expand it.
windows/win.c
+
9
−
3
View file @
3be8e3b7
...
...
@@ -310,6 +310,7 @@ void WIN_WalkWindows( HWND hwnd, int indent )
BOOL
WIN_UnlinkWindow
(
HWND
hwnd
)
{
WND
*
wndPtr
,
**
ppWnd
;
BOOL
ret
=
FALSE
;
if
(
!
(
wndPtr
=
WIN_FindWndPtr
(
hwnd
)))
return
FALSE
;
else
if
(
!
wndPtr
->
parent
)
...
...
@@ -317,11 +318,16 @@ BOOL WIN_UnlinkWindow( HWND hwnd )
WIN_ReleaseWndPtr
(
wndPtr
);
return
FALSE
;
}
ppWnd
=
&
wndPtr
->
parent
->
child
;
while
(
*
ppWnd
!=
wndPtr
)
ppWnd
=
&
(
*
ppWnd
)
->
next
;
*
ppWnd
=
wndPtr
->
next
;
while
(
*
ppWnd
&&
*
ppWnd
!=
wndPtr
)
ppWnd
=
&
(
*
ppWnd
)
->
next
;
if
(
*
ppWnd
)
{
*
ppWnd
=
wndPtr
->
next
;
ret
=
TRUE
;
}
WIN_ReleaseWndPtr
(
wndPtr
);
return
TRUE
;
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
windows/winpos.c
+
7
−
2
View file @
3be8e3b7
...
...
@@ -2525,8 +2525,13 @@ Pos: /* -----------------------------------------------------------------------
if
(
!
(
winpos
.
flags
&
SWP_NOZORDER
))
{
WIN_UnlinkWindow
(
winpos
.
hwnd
);
WIN_LinkWindow
(
winpos
.
hwnd
,
hwndInsertAfter
);
/* upon window creation (while processing WM_NCCREATE), wndPtr->parent is set correctly
* but wndPtr is not yet in wndPtr->parent->child list
* in those cases (SetWindowPos called while processing WM_NCCREATE),
* do not unlink/link winPtr in parent->child
*/
if
(
WIN_UnlinkWindow
(
winpos
.
hwnd
)
)
WIN_LinkWindow
(
winpos
.
hwnd
,
hwndInsertAfter
);
}
/* Reset active DCEs */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment