Group: GDI+ Graphics - Library: gdiplus
GpStatus WINGDIPAPI GdipCreateFromHWND(
HWND hwnd,
GpGraphics **graphics
)
DECLARE INTEGER GdipCreateFromHWND IN gdiplus;
INTEGER hWindow,;
INTEGER @ graphics
hwnd [in] Identifies the window or control.
graphics [out] Handle to the Graphics object.
Returns GpStatus value, 0 means success.
The Graphics class provides methods for drawing lines, curves, figures, images, and text. A Graphics object stores attributes of the display device and attributes of the items to be drawn.
When no longer needed the Graphics object must be deleted with the GdipDeleteGraphics function.
See also: GdipCreateFromHDC, GdipCreateFromHDC2 functions.