mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
[WIN32K:NTUSER] Formatting only!
This commit is contained in:
parent
9cab5b549d
commit
4d057cf626
2 changed files with 39 additions and 38 deletions
|
@ -854,28 +854,28 @@ IntIsChildWindow(PWND Parent, PWND BaseWindow)
|
|||
}
|
||||
////
|
||||
|
||||
/*
|
||||
Link the window into siblings list
|
||||
children and parent are kept in place.
|
||||
*/
|
||||
/* Link the window into siblings list. Children and parent are kept in place. */
|
||||
VOID FASTCALL
|
||||
IntLinkWindow(
|
||||
PWND Wnd,
|
||||
PWND WndInsertAfter /* set to NULL if top sibling */
|
||||
PWND WndInsertAfter /* Set to NULL if top sibling */
|
||||
)
|
||||
{
|
||||
if ((Wnd->spwndPrev = WndInsertAfter))
|
||||
Wnd->spwndPrev = WndInsertAfter;
|
||||
if (Wnd->spwndPrev)
|
||||
{
|
||||
/* link after WndInsertAfter */
|
||||
if ((Wnd->spwndNext = WndInsertAfter->spwndNext))
|
||||
/* Link after WndInsertAfter */
|
||||
Wnd->spwndNext = WndInsertAfter->spwndNext;
|
||||
if (Wnd->spwndNext)
|
||||
Wnd->spwndNext->spwndPrev = Wnd;
|
||||
|
||||
Wnd->spwndPrev->spwndNext = Wnd;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* link at top */
|
||||
if ((Wnd->spwndNext = Wnd->spwndParent->spwndChild))
|
||||
/* Link at the top */
|
||||
Wnd->spwndNext = Wnd->spwndParent->spwndChild;
|
||||
if (Wnd->spwndNext)
|
||||
Wnd->spwndNext->spwndPrev = Wnd;
|
||||
|
||||
Wnd->spwndParent->spwndChild = Wnd;
|
||||
|
@ -889,8 +889,8 @@ VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev)
|
|||
{
|
||||
if (hWndPrev == HWND_NOTOPMOST)
|
||||
{
|
||||
if (!(Wnd->ExStyle & WS_EX_TOPMOST) &&
|
||||
(Wnd->ExStyle2 & WS_EX2_LINKED)) return; /* nothing to do */
|
||||
if (!(Wnd->ExStyle & WS_EX_TOPMOST) && (Wnd->ExStyle2 & WS_EX2_LINKED))
|
||||
return; /* nothing to do */
|
||||
Wnd->ExStyle &= ~WS_EX_TOPMOST;
|
||||
hWndPrev = HWND_TOP; /* fallback to the HWND_TOP case */
|
||||
}
|
||||
|
@ -904,7 +904,9 @@ VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev)
|
|||
|
||||
WndInsertAfter = Wnd->spwndParent->spwndChild;
|
||||
while (WndInsertAfter && WndInsertAfter->spwndNext)
|
||||
{
|
||||
WndInsertAfter = WndInsertAfter->spwndNext;
|
||||
}
|
||||
|
||||
IntLinkWindow(Wnd, WndInsertAfter);
|
||||
Wnd->ExStyle &= ~WS_EX_TOPMOST;
|
||||
|
@ -913,7 +915,6 @@ VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev)
|
|||
{
|
||||
/* Link in the top of the list */
|
||||
IntLinkWindow(Wnd, NULL);
|
||||
|
||||
Wnd->ExStyle |= WS_EX_TOPMOST;
|
||||
}
|
||||
else if (hWndPrev == HWND_TOP)
|
||||
|
@ -927,7 +928,9 @@ VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev)
|
|||
{
|
||||
while (WndInsertBefore != NULL && WndInsertBefore->spwndNext != NULL)
|
||||
{
|
||||
if (!(WndInsertBefore->ExStyle & WS_EX_TOPMOST)) break;
|
||||
if (!(WndInsertBefore->ExStyle & WS_EX_TOPMOST))
|
||||
break;
|
||||
|
||||
if (WndInsertBefore == Wnd->spwndOwner) /* keep it above owner */
|
||||
{
|
||||
Wnd->ExStyle |= WS_EX_TOPMOST;
|
||||
|
@ -963,7 +966,7 @@ VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev)
|
|||
else
|
||||
{
|
||||
if (WndInsertAfter->spwndNext &&
|
||||
WndInsertAfter->spwndNext->ExStyle & WS_EX_TOPMOST)
|
||||
(WndInsertAfter->spwndNext->ExStyle & WS_EX_TOPMOST))
|
||||
{
|
||||
Wnd->ExStyle |= WS_EX_TOPMOST;
|
||||
}
|
||||
|
@ -1247,7 +1250,7 @@ co_UserSetParent(HWND hWndChild, HWND hWndNewParent)
|
|||
return( hWndOldParent);
|
||||
}
|
||||
|
||||
/* Unlink the window from siblings. children and parent are kept in place. */
|
||||
/* Unlink the window from siblings. Children and parent are kept in place. */
|
||||
VOID FASTCALL
|
||||
IntUnlinkWindow(PWND Wnd)
|
||||
{
|
||||
|
|
|
@ -30,8 +30,6 @@ DBG_DEFAULT_CHANNEL(UserWinpos);
|
|||
#define PLACE_MAX 0x0002
|
||||
#define PLACE_RECT 0x0004
|
||||
|
||||
VOID FASTCALL IntLinkWindow(PWND Wnd,PWND WndInsertAfter);
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
#if DBG
|
||||
|
|
Loading…
Reference in a new issue