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
3be8e3b7
Commit
3be8e3b7
authored
Apr 18, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly handling cases like calling SetWindowPos while processing
WM_NCCREATE.
parent
dc7c1b87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
gui
documentation/gui
+1
-1
win.c
windows/win.c
+9
-3
winpos.c
windows/winpos.c
+7
-2
No files found.
documentation/gui
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
...
...
windows/win.c
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
;
}
...
...
windows/winpos.c
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 */
...
...
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