 |
ChangeDisplaySettings ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The ChangeDisplaySettings function changes the settings of the default display device to the specified graphics mode. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
LONG ChangeDisplaySettings(
LPDEVMODE lpDevMode, // graphics mode
DWORD dwflags // graphics mode options
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER ChangeDisplaySettings IN user32;
STRING @ lpDevMode,;
INTEGER dwflags
|
 |
 |
 |
| Parameters: |
 |
lpDevMode
[in] Pointer to a DEVMODE structure that describes the new graphics mode.
dwflags
[in] Indicates how the graphics mode should be changed. |
 |
 |
| Return value: |
 |
| The ChangeDisplaySettings function returns one of the predefined values, e.g. DISP_CHANGE_SUCCESSFUL (0). |
 |
 |
| Usage: |
 |
= ChangeDisplaySettings(@cDevmode, 0)
|
 |
 |
| My comment: |
 |
Specifying CDS_TEST as dwflags allows an application to determine which graphics modes are actually valid, without causing the system to change to that graphics mode.
To change the settings of a specified display device, use the ChangeDisplaySettingsEx function. |
 |
 |
| Word Index links for the ChangeDisplaySettings : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-01-21 11:24:40 | | Modified: | 2009-02-23 13:07:41 | Visited in last 7 days: 34 |