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.

GetDeThe GetDC function retrieves a common, class, or private display contextdepending on the class style specified for the given window. For commondisplay contexts, GetDC assigns default attributes to the context each timeit is retrieved. For class and private contexts, GetDC leaves the previouslyassigned attributes unchanged.Parameters h Wnd HWND Identifies the window whose display context is to beretrieved.Return valueCommentsThe return value identifies the display context for the given window'sclient area if the function is successful. Otherwise, it is NULL.After painting with a common display context, the ReleaseDC functionmust be called to release the context. Class and private display contextsdo not have to be released. Since only five common display contexts areavailable at any given time, failure to release a display context can preventother applications from accessing a display context.GetDCOrgSyntaxDWORD GetDCOrg(hDC)function GetDCOrg(DC: HDC): Longint;This function obtains the final translation origin for the device context.The final translation origin specifies the offset used by Windows totranslate device coordinates into client coordinates for points in anapplication's window. The final translation origin is relative to thephysical origin of the screen display.Parameters hDC HDC Identifies the device context whose origin is to beretrieved.Return valueThe return value specifies the final translation origin (in devicecoordinates). The y-coordinate is in the high-order word; the x-coordinateis in the low-order word.GetOesktopWindow 3.0SyntaxHWND GetDesktopWindow()function GetDesktopWindow: HWnd;This function returns the window handle to the Windows desktopwindow. The desktop window covers the entire screen and is the area ontop of which all icons and other windows are painted.304Software development kit

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

Saved successfully!

Ooh no, something went wrong!