 |
SetGraphicsMode ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Sets the graphics mode for the specified device context. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int SetGraphicsMode(
HDC hdc, // handle to device context
int iMode // graphics mode
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SetGraphicsMode IN gdi32;
INTEGER hdc, INTEGER iMode
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to the device context.
iMode
[in] Specifies the graphics mode. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the old graphics mode. |
 |
 |
| Usage: |
 |
#DEFINE GM_COMPATIBLE 1
#DEFINE GM_ADVANCED 2
LOCAL hWindow, hDC
hWindow = _screen.HWnd
hDC = GetWindowDC(hWindow)
? SetGraphicsMode(hDC, GM_ADVANCED)
= ReleaseDC(hWindow, hDC)
|
 |
 |
| My comment: |
 |
See also: GetGraphicsMode
|
 |
 |
| Word Index links for the SetGraphicsMode : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2007-04-27 09:32:03 | | Modified: | 2007-06-11 16:27:36 | Visited in last 7 days: 17 |