Using Win32 functions in Visual FoxPro Image Gallery
Device Context
..msdn
ChangeDisplaySettings
CreateCompatibleDC
CreateDC
DeleteDC
DeleteObject
EnumDisplayDevices
EnumDisplaySettings
GetDC
GetDeviceCaps
GetObject
GetObjectType
ReleaseDC
SelectObject
Code examples:
How to change display settings: screen resolution, screen refresh rate
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:
How to change display settings: screen resolution, screen refresh rate
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-21 11:24:40
Modified: 2009-02-23 13:07:41
Visited in last 7 days: 23
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.162.154.91)
13 sec.Function: 'CharToOem'
27 sec.Function: 'CreateMenu'
41 sec.Function: 'CeRapiFreeBuffer'
55 sec.Function: 'GdiplusShutdown'
1.18 min.
Function group: 'Console'
1.47 min.Function: 'CeGetLastError'
1.75 min.
Function group: 'Cryptography Reference'
2 min.Function: 'EndUpdateResource'
2.27 min.
Function group: 'Data Decompression Library'
2.52 min.Function: 'SHGetFolderLocation'
Google
Advertise here!