Jump to content

WinGetClipPS

From EDM2
Revision as of 15:31, 4 October 2023 by Ak120 (talk | contribs) (Created page with "This method obtains a clipped cache presentation space. ==Syntax== WinGetClipPS(hwnd, hwndClipWindow, ulClipflags) ==Parameter== ;hwnd (HWND):Handle of window for which the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This method obtains a clipped cache presentation space.

Syntax

WinGetClipPS(hwnd, hwndClipWindow, ulClipflags)

Parameter

hwnd (HWND)
Handle of window for which the presentation space is required.
hwndClipWindow (HWND)
Handle of window for clipping.
HWND_BOTTOM - Clip the last window in the sibling chain and continue clipping until the next window is hwnd or NULLHANDLE.
HWND_TOP - Clip the first window in the sibling chain and continue clipping until the next window is hwnd or NULLHANDLE.
NULLHANDLE - Clip all siblings to the window hwnd.
ulClipflags (ULONG)
Clipping control flags.
PSF_CLIPSIBLINGS - Clip out all siblings of hwnd.
PSF_CLIPCHILDREN - Clip out all children of hwnd.
PSF_CLIPUPWARDS - Taking hwndClipWindow as a reference window, clip out all sibling windows before hwndClipWindow. This value may not be used with PSF_CLIPDOWNWARDS.
PSF_CLIPDOWNWARDS - Taking hwndClipWindow as a reference window, clip out all sibling windows after hwndClipWindow. This value may not be used with PSF_CLIPUPWARDS.
PSF_LOCKWINDOWUPDATE - Calculate a presentation space that keeps a visible region even though output may be locked by the WinLockWindowUpdate function.
PSF_PARENTCLIP - Calculate a presentation space that uses the visible region of the parent of hwnd but with an origin calculated for hwnd.

Returns

hps (HPS)
Presentation-space handle that can be used for drawing.