ReactOS  0.4.14-dev-317-g96040ec
winpos.h
Go to the documentation of this file.
1 #pragma once
2 
3 typedef struct _CVR // Tag Ussw
4 {
14  HRGN hrgnVisOld;
16  HRGN hrgnClip;
18 } CVR, *PCVR;
19 
20 typedef struct _SMWP
21 {
28 } SMWP, *PSMWP;
29 
31 {
32  if(!RECTL_bPointInRect(&pwnd->rcWindow, x, y))
33  {
34  return FALSE;
35  }
36 
37  if(!pwnd->hrgnClip || pwnd->style & WS_MINIMIZE)
38  {
39  return TRUE;
40  }
41 
42  return NtGdiPtInRegion(pwnd->hrgnClip,
43  x - pwnd->rcWindow.left,
44  y - pwnd->rcWindow.top);
45 }
46 
48 IntEqualRect(RECTL *lprc1, RECTL *lprc2)
49 {
50  if (lprc1 == NULL || lprc2 == NULL)
51  return FALSE;
52 
53  return (lprc1->left == lprc2->left) && (lprc1->top == lprc2->top) &&
54  (lprc1->right == lprc2->right) && (lprc1->bottom == lprc2->bottom);
55 }
56 
61 UINT FASTCALL co_WinPosGetMinMaxInfo(PWND Window, POINT* MaxSize, POINT* MaxPos, POINT* MinTrack, POINT* MaxTrack);
62 UINT FASTCALL co_WinPosMinMaximize(PWND WindowObject, UINT ShowFlag, RECTL* NewPos);
66 PWND APIENTRY co_WinPosWindowFromPoint(IN PWND ScopeWin, IN POINT *WinPoint, IN OUT USHORT* HitTest, IN BOOL Ignore);
struct _SMWP SMWP
#define IN
Definition: typedefs.h:38
#define TRUE
Definition: types.h:120
HRGN hrgnClip
Definition: winpos.h:16
VOID FASTCALL co_WinPosActivateOtherWindow(PWND)
Definition: winpos.c:395
LONG cxClientNew
Definition: winpos.h:8
BOOL FASTCALL IntClientToScreen(PWND, LPPOINT)
Definition: winpos.c:198
BOOLEAN FASTCALL co_WinPosShowWindow(PWND Window, INT Cmd)
Definition: winpos.c:2464
HEAD head
Definition: winpos.h:22
BOOL UserHasWindowEdge(DWORD, DWORD)
Definition: winpos.c:841
LONG top
Definition: windef.h:292
long bottom
Definition: polytest.cpp:53
__kernel_entry W32KAPI BOOL APIENTRY NtGdiPtInRegion(_In_ HRGN hrgn, _In_ INT x, _In_ INT y)
Definition: region.c:4016
UINT fsRE
Definition: winpos.h:13
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
LONG left
Definition: windef.h:291
FORCEINLINE BOOL IntPtInWindow(PWND pwnd, INT x, INT y)
Definition: winpos.h:30
#define FASTCALL
Definition: nt_native.h:50
int32_t INT
Definition: typedefs.h:56
BOOL FASTCALL ActivateOtherWindowMin(PWND)
Definition: winpos.c:284
RECT rcBlt
Definition: winpos.h:10
WINDOWPOS pos
Definition: winpos.h:5
long right
Definition: polytest.cpp:53
Definition: window.c:29
UINT bShellNotify
Definition: winpos.h:23
#define WS_MINIMIZE
Definition: pedump.c:622
INT ccvr
Definition: winpos.h:25
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
VOID UserGetWindowBorders(DWORD, DWORD, SIZE *, BOOL)
Definition: winpos.c:885
long top
Definition: polytest.cpp:53
LONG yClientNew
Definition: winpos.h:7
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:581
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
HRGN hrgnClip
Definition: ntuser.h:697
#define FORCEINLINE
Definition: ntbasedef.h:221
long left
Definition: polytest.cpp:53
UINT FASTCALL co_WinPosMinMaximize(PWND WindowObject, UINT ShowFlag, RECTL *NewPos)
LONG cyClientNew
Definition: winpos.h:9
Definition: ntuser.h:174
struct _SMWP * PSMWP
HRGN hrgnInterMonitor
Definition: winpos.h:17
r parent
Definition: btrfs.c:2869
void FASTCALL co_WinPosSendSizeMove(PWND Window)
Definition: winpos.c:2280
PWND FASTCALL IntRealChildWindowFromPoint(PWND, LONG, LONG)
Definition: winpos.c:2865
Definition: winpos.h:3
UINT bHandle
Definition: winpos.h:24
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: winpos.h:20
UINT FASTCALL co_WinPosArrangeIconicWindows(PWND parent)
Definition: winpos.c:728
LONG dxBlt
Definition: winpos.h:11
GLbitfield flags
Definition: glext.h:7161
BOOL FASTCALL IntGetWindowRect(PWND, RECTL *)
Definition: winpos.c:120
struct _CVR * PCVR
FORCEINLINE BOOL RECTL_bPointInRect(_In_ const RECTL *prcl, _In_ INT x, _In_ INT y)
Definition: rect.h:52
HRGN hrgnVisOld
Definition: winpos.h:14
Definition: sacdrv.h:277
BOOL FASTCALL IntGetClientOrigin(PWND Window, LPPOINT Point)
Definition: winpos.c:70
RECT rcWindow
Definition: ntuser.h:680
LONG xClientNew
Definition: winpos.h:6
Definition: ntuser.h:657
unsigned short USHORT
Definition: pedump.c:61
INT ccvrAlloc
Definition: winpos.h:26
FORCEINLINE BOOL IntEqualRect(RECTL *lprc1, RECTL *lprc2)
Definition: winpos.h:48
PWND APIENTRY co_WinPosWindowFromPoint(IN PWND ScopeWin, IN POINT *WinPoint, IN OUT USHORT *HitTest, IN BOOL Ignore)
Definition: winpos.c:2832
LRESULT FASTCALL co_WinPosGetNonClientSize(PWND Window, RECTL *WindowRect, RECTL *ClientRect)
unsigned int UINT
Definition: ndis.h:50
struct _CVR CVR
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
_Out_opt_ int * cx
Definition: commctrl.h:581
#define OUT
Definition: typedefs.h:39
PCVR acvr
Definition: winpos.h:27
LONG_PTR LRESULT
Definition: windef.h:209
UINT FASTCALL co_WinPosGetMinMaxInfo(PWND Window, POINT *MaxSize, POINT *MaxPos, POINT *MinTrack, POINT *MaxTrack)
Definition: winpos.c:931
LONG dyBlt
Definition: winpos.h:12
BOOL FASTCALL IntScreenToClient(PWND, LPPOINT)
Definition: winpos.c:212
PTHREADINFO pti
Definition: winpos.h:15
#define APIENTRY
Definition: api.h:79
BOOLEAN FASTCALL co_WinPosSetWindowPos(PWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx, INT cy, UINT flags)
Definition: winpos.c:1720
DWORD style
Definition: ntuser.h:670