Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CDC::SetGraphicsMode
Collapse the table of content
Expand the table of content

CDC::SetGraphicsMode

Sets the graphics mode for the specified device context.

int SetGraphicsMode(
   int iMode
);

iMode

Specifies the graphics mode. For a list of the values that this parameter can take, see SetGraphicsMode.

Returns the old graphics mode on success.

Returns 0 on failure. To get extended error information, call GetLastError.

This method wraps the Windows GDI function SetGraphicsMode.

Header: afxwin.h

Show:
© 2015 Microsoft