5 typedef struct _WINDOW_OBJECT
*PWINDOW_OBJECT
;
7 #include <include/object.h>
8 #include <include/class.h>
9 #include <include/msgqueue.h>
10 #include <include/winsta.h>
11 #include <include/dce.h>
12 #include <include/prop.h>
13 #include <include/scroll.h>
15 extern ATOM AtomMessage
;
16 extern ATOM AtomWndObj
; /* WNDOBJ list */
18 BOOL FASTCALL
UserUpdateUiState(PWND Wnd
, WPARAM wParam
);
20 typedef struct _WINDOW_OBJECT
25 /* Pointer to the thread information */
26 PTHREADINFO pti
; // Use Wnd->head.pti
27 /* system menu handle. */
29 /* Handle for the window. */
30 HWND hSelf
; // Use Wnd->head.h
33 /* Handle of region of the window to be updated. */
35 /* Handle of the window region. */
37 struct _WINDOW_OBJECT
* spwndChild
;
38 struct _WINDOW_OBJECT
* spwndNext
;
39 struct _WINDOW_OBJECT
* spwndPrev
;
40 struct _WINDOW_OBJECT
* spwndParent
;
41 struct _WINDOW_OBJECT
* spwndOwner
;
44 PSBINFOEX pSBInfo
; // convert to PSBINFO
45 /* Entry in the list of thread windows. */
46 LIST_ENTRY ThreadListEntry
;
47 } WINDOW_OBJECT
; /* PWINDOW_OBJECT already declared at top of file */
50 #define WINDOWOBJECT_NEED_SIZE WNDS_SENDSIZEMOVEMSGS
51 #define WINDOWOBJECT_NEED_ERASEBKGND WNDS_ERASEBACKGROUND
52 #define WINDOWOBJECT_NEED_NCPAINT WNDS_SENDNCPAINT
53 #define WINDOWOBJECT_RESTOREMAX (0x00000020) // Set/Clr WS_MAXIMIZE && Clr/Set WS_EX2_VERTICALLYMAXIMIZEDLEFT/RIGHT
55 #define WINDOWSTATUS_DESTROYING WNDS2_INDESTROY
56 #define WINDOWSTATUS_DESTROYED WNDS_DESTROYED
58 #define HAS_DLGFRAME(Style, ExStyle) \
59 (((ExStyle) & WS_EX_DLGMODALFRAME) || \
60 (((Style) & WS_DLGFRAME) && (!((Style) & WS_THICKFRAME))))
62 #define HAS_THICKFRAME(Style, ExStyle) \
63 (((Style) & WS_THICKFRAME) && \
64 (!(((Style) & (WS_DLGFRAME | WS_BORDER)) == WS_DLGFRAME)))
66 #define HAS_THINFRAME(Style, ExStyle) \
67 (((Style) & WS_BORDER) || (!((Style) & (WS_CHILD | WS_POPUP))))
69 #define IntIsDesktopWindow(WndObj) \
70 (WndObj->spwndParent == NULL)
72 #define IntIsBroadcastHwnd(hWnd) \
73 (hWnd == HWND_BROADCAST || hWnd == HWND_TOPMOST)
76 #define IntWndBelongsToThread(WndObj, W32Thread) \
77 (((WndObj->pti->pEThread && WndObj->pti->pEThread->Tcb.Win32Thread)) && \
78 (WndObj->pti->pEThread->Tcb.Win32Thread == W32Thread))
79 // ((WndObj->head.pti) && (WndObj->head.pti == W32Thread))
81 #define IntGetWndThreadId(WndObj) \
82 WndObj->pti->pEThread->Cid.UniqueThread
83 // WndObj->head.pti->pEThread->Cid.UniqueThread
85 #define IntGetWndProcessId(WndObj) \
86 WndObj->pti->pEThread->ThreadsProcess->UniqueProcessId
87 // WndObj->head.pti->pEThread->ThreadsProcess->UniqueProcessId
90 IntIsWindow(HWND hWnd
);
93 IntWinListChildren(PWINDOW_OBJECT Window
);
96 InitWindowImpl (VOID
);
99 CleanupWindowImpl (VOID
);
102 IntGetClientRect (PWINDOW_OBJECT WindowObject
, RECTL
*Rect
);
105 IntGetActiveWindow (VOID
);
108 IntIsWindowVisible (PWINDOW_OBJECT Window
);
111 IntIsChildWindow (PWINDOW_OBJECT Parent
, PWINDOW_OBJECT Child
);
114 IntUnlinkWindow(PWINDOW_OBJECT Wnd
);
117 IntLinkWindow(PWINDOW_OBJECT Wnd
, PWINDOW_OBJECT WndParent
, PWINDOW_OBJECT WndPrevSibling
);
119 PWINDOW_OBJECT FASTCALL
120 IntGetAncestor(PWINDOW_OBJECT Wnd
, UINT Type
);
122 PWINDOW_OBJECT FASTCALL
123 IntGetParent(PWINDOW_OBJECT Wnd
);
126 IntGetWindowRgn(PWINDOW_OBJECT Window
, HRGN hRgn
);
129 IntGetWindowRgnBox(PWINDOW_OBJECT Window
, RECTL
*Rect
);
132 IntGetWindowInfo(PWINDOW_OBJECT WindowObject
, PWINDOWINFO pwi
);
135 IntGetWindowBorderMeasures(PWINDOW_OBJECT WindowObject
, UINT
*cx
, UINT
*cy
);
138 IntIsWindowInDestroy(PWINDOW_OBJECT Window
);
141 IntShowOwnedPopups( PWINDOW_OBJECT owner
, BOOL fShow
);
144 IntDefWindowProc( PWINDOW_OBJECT Window
, UINT Msg
, WPARAM wParam
, LPARAM lParam
, BOOL Ansi
);
146 VOID FASTCALL
IntNotifyWinEvent(DWORD
, PWND
, LONG
, LONG
);
148 PWND FASTCALL
co_UserCreateWindowEx(CREATESTRUCTW
*, PUNICODE_STRING
, PLARGE_STRING
);
149 WNDPROC FASTCALL
IntGetWindowProc(PWND
,BOOL
);