ReactOS  0.4.14-dev-323-g6fe6a88
window.h
Go to the documentation of this file.
1 #pragma once
2 
3 extern ATOM AtomMessage;
4 extern ATOM AtomWndObj; /* WNDOBJ list */
5 extern ATOM AtomLayer;
7 
8 #define HAS_DLGFRAME(Style, ExStyle) \
9  (((ExStyle) & WS_EX_DLGMODALFRAME) || \
10  (((Style) & WS_DLGFRAME) && (!((Style) & WS_THICKFRAME))))
11 
12 #define HAS_THICKFRAME(Style, ExStyle) \
13  (((Style) & WS_THICKFRAME) && \
14  (!(((Style) & (WS_DLGFRAME | WS_BORDER)) == WS_DLGFRAME)))
15 
16 #define HAS_THINFRAME(Style, ExStyle) \
17  (((Style) & WS_BORDER) || (!((Style) & (WS_CHILD | WS_POPUP))))
18 
19 #define HAS_CLIENTFRAME(Style, ExStyle) \
20  (((ExStyle) & WS_EX_CLIENTEDGE) || (!((Style) & (WS_CHILD | WS_POPUP))))
21 
22 #define HAS_MENU(pWnd,style) ((((style) & (WS_CHILD | WS_POPUP)) != WS_CHILD) && (pWnd->IDMenu) && IntIsMenu(UlongToHandle(pWnd->IDMenu)))
23 
24 #define IntIsDesktopWindow(WndObj) \
25  (WndObj->spwndParent == NULL)
26 
27 #define IntIsBroadcastHwnd(hWnd) \
28  (hWnd == HWND_BROADCAST || hWnd == HWND_TOPMOST)
29 
30 
31 #define IntWndBelongsToThread(WndObj, W32Thread) \
32  ((WndObj->head.pti) && (WndObj->head.pti == W32Thread))
33 
34 #define IntGetWndThreadId(WndObj) \
35  PsGetThreadId(WndObj->head.pti->pEThread)
36 
37 #define IntGetWndProcessId(WndObj) \
38  PsGetProcessId(WndObj->head.pti->ppi->peProcess)
39 
45 VOID FASTCALL IntGetClientRect (PWND WindowObject, RECTL *Rect);
46 INT FASTCALL IntMapWindowPoints(PWND FromWnd, PWND ToWnd, LPPOINT lpPoints, UINT cPoints);
49 VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev);
52 BOOL FASTCALL IntShowOwnedPopups( PWND owner, BOOL fShow );
55 #define WINVER_WIN2K _WIN32_WINNT_WIN2K
56 #define WINVER_WINNT4 _WIN32_WINNT_NT4
57 #define WINVER_WIN31 0x30A
59  PLARGE_STRING WindowName,
60  PCLS Class,
61  PWND ParentWindow,
62  PWND OwnerWindow,
63  PVOID acbiBuffer,
64  PDESKTOP pdeskCreated,
65  DWORD dwVer );
67  PUNICODE_STRING ClassName,
68  PLARGE_STRING WindowName,
69  PVOID acbiBuffer,
70  DWORD dwVer );
81 
82 /* EOF */
DWORD FASTCALL GetNCHitEx(PWND, POINT)
Definition: nonclient.c:1927
PWND FASTCALL IntGetNonChildAncestor(PWND)
Definition: window.c:323
PWND FASTCALL IntCreateWindow(CREATESTRUCTW *Cs, PLARGE_STRING WindowName, PCLS Class, PWND ParentWindow, PWND OwnerWindow, PVOID acbiBuffer, PDESKTOP pdeskCreated, DWORD dwVer)
Definition: window.c:1612
LONG_PTR FASTCALL co_UserSetWindowLongPtr(HWND, DWORD, LONG_PTR, BOOL)
Definition: window.c:3836
WORD ATOM
Definition: dimm.idl:113
LONG FASTCALL co_UserSetWindowLong(HWND, DWORD, LONG, BOOL)
Definition: window.c:3830
HWND hWnd
Definition: settings.c:17
BOOL FASTCALL IntIsWindowVisible(PWND)
Definition: window.c:170
ATOM AtomWndObj
Definition: ntuser.c:20
UINT_PTR WPARAM
Definition: windef.h:207
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
Definition: acpixf.h:722
VOID FASTCALL IntGetClientRect(PWND WindowObject, RECTL *Rect)
Definition: winpos.c:91
BOOL FASTCALL IntEnableWindow(HWND, BOOL)
Definition: window.c:201
#define FASTCALL
Definition: nt_native.h:50
int32_t INT
Definition: typedefs.h:56
WPARAM wParam
Definition: combotst.c:138
BOOL FASTCALL IntIsChildWindow(PWND Parent, PWND Child)
Definition: window.c:882
Definition: window.c:29
LRESULT FASTCALL IntDefWindowProc(PWND Window, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL Ansi)
Definition: defwnd.c:532
unsigned int BOOL
Definition: ntddk_ex.h:94
ATOM AtomMessage
Definition: ntuser.c:19
long LONG
Definition: pedump.c:60
ATOM AtomFlashWndState
Definition: ntuser.c:22
PWND FASTCALL co_UserCreateWindowEx(CREATESTRUCTW *Cs, PUNICODE_STRING ClassName, PLARGE_STRING WindowName, PVOID acbiBuffer, DWORD dwVer)
Definition: window.c:1969
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:581
LRESULT co_UserFreeWindow(PWND, PPROCESSINFO, PTHREADINFO, BOOLEAN)
Definition: window.c:546
unsigned char BOOLEAN
HWND FASTCALL IntGetWindow(HWND, UINT)
Definition: window.c:353
Definition: ntuser.h:533
LONG_PTR LPARAM
Definition: windef.h:208
struct @1593 Msg[]
PWND FASTCALL IntGetParent(PWND Wnd)
Definition: window.c:185
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL FASTCALL UserUpdateUiState(PWND Wnd, WPARAM wParam)
Definition: window.c:16
PWND FASTCALL ValidateHwndNoErr(HWND)
Definition: window.c:96
VOID FASTCALL IntNotifyWinEvent(DWORD, PWND, LONG, LONG, DWORD)
Definition: event.c:179
PWND FASTCALL VerifyWnd(PWND)
Definition: window.c:64
Definition: ntuser.h:657
BOOL FASTCALL IntShowOwnedPopups(PWND owner, BOOL fShow)
Definition: window.c:4442
ULONG FASTCALL IntSetStyle(PWND, ULONG, ULONG)
Definition: window.c:124
INT FASTCALL IntMapWindowPoints(PWND FromWnd, PWND ToWnd, LPPOINT lpPoints, UINT cPoints)
Definition: winpos.c:143
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
HWND *FASTCALL IntWinListChildren(PWND Window)
Definition: window.c:255
VOID FASTCALL IntGetWindowBorderMeasures(PWND WindowObject, UINT *cx, UINT *cy)
Definition: winpos.c:858
unsigned int UINT
Definition: ndis.h:50
_Out_opt_ int * cx
Definition: commctrl.h:581
VOID FASTCALL IntUnlinkWindow(PWND Wnd)
Definition: window.c:1306
ATOM AtomLayer
Definition: ntuser.c:21
unsigned int ULONG
Definition: retypes.h:1
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE Child
Definition: acpixf.h:722
LONG_PTR LRESULT
Definition: windef.h:209
VOID FASTCALL IntLinkHwnd(PWND Wnd, HWND hWndPrev)
Definition: window.c:937
LPARAM lParam
Definition: combotst.c:139
HWND *FASTCALL IntWinListOwnedPopups(PWND Window)
Definition: window.c:287
BOOL FASTCALL IntIsWindow(HWND hWnd)
Definition: window.c:157