Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetGraphicsMode function retrieves the current graphics mode for the specified device context.
Syntax
int GetGraphicsMode(
[in] HDC hdc
);
Parameters
[in] hdc
A handle to the device context.
Return value
If the function succeeds, the return value is the current graphics mode. It can be one of the following values.
Value | Meaning |
---|---|
GM_COMPATIBLE | The current graphics mode is the compatible graphics mode, a mode that is compatible with 16-bit Windows. In this graphics mode, an application cannot set or modify the world transformation for the specified device context. The compatible graphics mode is the default graphics mode. |
GM_ADVANCED | The current graphics mode is the advanced graphics mode, a mode that allows world transformations. In this graphics mode, an application can set or modify the world transformation for the specified device context. |
Otherwise, the return value is zero.
Remarks
An application can set the graphics mode for a device context by calling the SetGraphicsMode function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |
See also
Coordinate Space and Transformation Functions