13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BeginDeferWindowPosParametersReturn valuefunction accepts this data structure and instantaneously repositions thewindows using the information stored in the structure.nNum Windows int Specifies the initial number of windows for whichposition information is to be stored in the data structure.The Defer-WindowPos function increases the size of thestructure if needed.The return value identifies the multiple window-position data structure.The return value is NULL if system resources are not available to allocatethe structure.BeginPaintSyntaxParametersReturn valueHDC BeginPaint(h Wnd, IpPaint)function BeginPaint(Wnd: HWnd; var Paint: TPaintStruct): HDC;This function prepares the given window for painting and fills the paintstructure pointed to by the IpPaint parameter with information about thepainting.The paint structure contains a handle to the device context for thewindow, a RECT data structure that contains the smallest rectangle thatcompletely encloses the update region, and a flag that specifies whether ornot the background has been erased.The BeginPaint function automatically sets the clipping region of thedevice context to exclude any area outside the update region. The updateregion is set by the InvalidateRect or InvalidateRgn functions and by thesystem after sizing, moving, creating, scrolling, or any other operationthat affects the client area. If the update region is marked for erasing,BeginPaint sends a WM_ERASEBKGND message to the window.An application should not call the BeginPaint function except in responseto a WM_P AINT message. Each BeginPaint call must have a matching callto the EndPaint function.h WndIpPaintHWND Identifies the window to be repainted.LPPAINTSTRUCT Points to the PAINTSTRUCT datastructure that is to receive painting information, such asthe device context for the window and the updaterectangle.The return value identifies the device context for the specified window.Chapter 4, Functions directory 161

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!