 |
GetGraphicsMode ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the current graphics mode for the specified device context. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int GetGraphicsMode(
HDC hdc // handle to device context
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetGraphicsMode IN gdi32;
INTEGER hDC
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to the device context. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the current graphics mode. |
 |
 |
| Usage: |
 |
#DEFINE GM_COMPATIBLE 1
#DEFINE GM_ADVANCED 2
LOCAL hWindow, hDC
hWindow = application.HWnd
hDC = GetWindowDC(hWindow)
? GetGraphicsMode(hDC)
= ReleaseDC(hWindow, hDC)
|
 |
 |
| My comment: |
 |
An application can set the graphics mode for a device context by calling the SetGraphicsMode function.
|
 |
 |
| Word Index links for the GetGraphicsMode : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2007-04-27 09:26:20 | | Modified: | 2007-06-11 16:28:08 | Visited in last 7 days: 14 |