Using Win32 functions in Visual FoxPro Image Gallery
Monitor Configuration (Vista)
Code examples:
..msdn    Add comment     W32 Constants      Translate this page
Sets the contrast value for a monitor.
Code examples:
BOOL SetMonitorContrast(
  HANDLE  hMonitor,
  DWORD  dwNewContrast
FoxPro declaration:
DECLARE INTEGER SetMonitorContrast IN dxva2;
    INTEGER hMonitor,;
    LONG dwNewContrast
[in] Handle to a physical monitor. To get the monitor handle, call GetPhysicalMonitorsFromHMONITOR or GetPhysicalMonitorsFromIDirect3DDevice9.

[in] Contrast value. To get the monitor"s minimum and maximum contrast values, call, call GetMonitorContrast.
Return value:
If the function succeeds, the return value is nonzero.
= SetMonitorContrast(hPhysMonitor, 75)
My comment:
If this function is supported, the GetMonitorCapabilities function returns the MC_CAPS_CONTRAST flag.

See also: GetMonitorContrast, GetMonitorBrightness
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2008-12-11 14:56:03
Modified: 2008-12-11 14:58:16
Visited in last 7 days: 5
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 (
6 sec.
Function group: 'URL Monikers'
12 sec.Example: 'How to control Adobe Reader 9.0 (SDI mode) from VFP application'
19 sec.Function: 'mmioDescend'
Function group: 'Windows Multimedia'
24 sec.Function: 'GdipGetPageUnit'
30 sec.Example: 'Enhanced GetFont dialog'
37 sec.Function: 'waveInGetErrorText'
Function group: 'Windows Multimedia'
43 sec.Function: 'RasPhonebookDlg'
49 sec.Function: 'JetCommitTransaction'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
55 sec.
1.03 min.Function: 'WriteFile'
Advertise here!