mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 07:28:18 +00:00
475719f162
- Sync with trunk r51165. svn path=/branches/cmake-bringup/; revision=51166
68 lines
2.1 KiB
C
68 lines
2.1 KiB
C
#pragma once
|
|
|
|
typedef struct _CVR // Tag Ussw
|
|
{
|
|
WINDOWPOS pos;
|
|
LONG xClientNew;
|
|
LONG yClientNew;
|
|
LONG cxClientNew;
|
|
LONG cyClientNew;
|
|
RECT rcBlt;
|
|
LONG dxBlt;
|
|
LONG dyBlt;
|
|
UINT fsRE;
|
|
HRGN hrgnVisOld;
|
|
PTHREADINFO pti;
|
|
HRGN hrgnClip;
|
|
HRGN hrgnInterMonitor;
|
|
} CVR, *PCVR;
|
|
|
|
typedef struct _SMWP
|
|
{
|
|
HEAD head;
|
|
UINT bShellNotify:1;
|
|
UINT bHandle:1;
|
|
INT ccvr;
|
|
INT ccvrAlloc;
|
|
PCVR acvr;
|
|
} SMWP, *PSMWP;
|
|
|
|
#define IntPtInWindow(WndObject,x,y) \
|
|
((x) >= (WndObject)->rcWindow.left && \
|
|
(x) < (WndObject)->rcWindow.right && \
|
|
(y) >= (WndObject)->rcWindow.top && \
|
|
(y) < (WndObject)->rcWindow.bottom && \
|
|
(!(WndObject)->hrgnClip || ((WndObject)->style & WS_MINIMIZE) || \
|
|
NtGdiPtInRegion((WndObject)->hrgnClip, (INT)((x) - (WndObject)->rcWindow.left), \
|
|
(INT)((y) - (WndObject)->rcWindow.top))))
|
|
|
|
#define IntPtInRect(lprc,pt) \
|
|
((pt.x >= (lprc)->left) && (pt.x < (lprc)->right) && (pt.y >= (lprc)->top) && (pt.y < (lprc)->bottom))
|
|
|
|
UINT
|
|
FASTCALL co_WinPosArrangeIconicWindows(PWND parent);
|
|
BOOL FASTCALL
|
|
IntGetClientOrigin(PWND Window, LPPOINT Point);
|
|
LRESULT FASTCALL
|
|
co_WinPosGetNonClientSize(PWND Window, RECTL* WindowRect, RECTL* ClientRect);
|
|
UINT FASTCALL
|
|
co_WinPosGetMinMaxInfo(PWND Window, POINT* MaxSize, POINT* MaxPos,
|
|
POINT* MinTrack, POINT* MaxTrack);
|
|
UINT FASTCALL
|
|
co_WinPosMinMaximize(PWND WindowObject, UINT ShowFlag, RECTL* NewPos);
|
|
BOOLEAN FASTCALL
|
|
co_WinPosSetWindowPos(PWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx,
|
|
INT cy, UINT flags);
|
|
BOOLEAN FASTCALL
|
|
co_WinPosShowWindow(PWND Window, INT Cmd);
|
|
void FASTCALL
|
|
co_WinPosSendSizeMove(PWND Window);
|
|
PWND FASTCALL
|
|
co_WinPosWindowFromPoint(PWND ScopeWin, POINT *WinPoint, USHORT* HitTest);
|
|
VOID FASTCALL co_WinPosActivateOtherWindow(PWND Window);
|
|
|
|
VOID FASTCALL WinPosInitInternalPos(PWND WindowObject,
|
|
POINT *pt, RECTL *RestoreRect);
|
|
BOOL FASTCALL IntEndDeferWindowPosEx(HDWP);
|
|
HDWP FASTCALL IntDeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT);
|