Applies to: desktop apps only
Creates a Graphics::Graphics object that is associated with a specified device context.
Graphics( [in] HDC hdc );
Handle to a device context that will be associated with the new Graphics::Graphics object.
When you use this constructor to create a Graphics::Graphics object, make sure that the Graphics::Graphics object is deleted or goes out of scope before the device context is released.
Minimum supported client
|Windows XP, Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
|Gdiplusgraphics.h (include Gdiplus.h)|
Build date: 3/6/2012