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
How to detect if additional monitor is connected and active
EnumDisplaySettings
..msdn    Add comment     W32 Constants      Translate this page
The EnumDisplaySettings function retrieves information about one of the graphics modes for a display device. To retrieve information for all the graphics modes of a display device, make a series of calls to this function.
Code examples:
How to change display settings: screen resolution, screen refresh rate
How to detect if additional monitor is connected and active
Declaration:
BOOL EnumDisplaySettings(
  LPCTSTR lpszDeviceName,  // display device
  DWORD iModeNum,          // graphics mode
  LPDEVMODE lpDevMode      // graphics mode settings
);
FoxPro declaration:
DECLARE INTEGER EnumDisplaySettings IN user32;
    STRING    lpszDeviceName,;
    INTEGER   iModeNum,;
    STRING  @ lpDevMode
Parameters:
lpszDeviceName
[in] Pointer to a null-terminated string that specifies the display device about whose graphics mode the function will obtain information.

iModeNum
[in] Specifies the type of information to retrieve.

lpDevMode
[out] Pointer to a DEVMODE structure into which the function stores information about the specified graphics mode.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
MSDN: The function fails if iModeNum is greater than the index of the display device"s last graphics mode. As noted in the description of the iModeNum parameter, you can use this behavior to enumerate all of a display device"s graphics modes.
Word Index links for the EnumDisplaySettings :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-21 11:21:58
Modified: 2003-01-21 11:24:16
Visited in last 7 days: 18
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.10.56)
8 sec.
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
16 sec.Function: 'ReadEventLog'
24 sec.Function: 'AVIFileRelease'
30 sec.Function: 'ws_connect'
37 sec.Function: 'GetFocus'
45 sec.Function: 'JetBeginTransaction'
52 sec.Function: 'LoadLibraryEx'
59 sec.Function: 'FindClose'
1.1 min.Function: 'GdipShearMatrix'
1.22 min.Function: 'UnmapViewOfFile'
Google
Advertise here!