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

dwNewContrast
[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.
Usage:
 
= 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  
FreeTranslation.com 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: 8
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.67.55)
6.06 hrs.Example: 'How to change display settings: screen resolution, screen refresh rate'
Language: 'WMI'
 Example: 'The DetectAutoProxyUrl function identifies the auto-config script location'
6.97 hrs.Example: 'How to display a dialog box with which the user can add a data source (DSN)'
7.55 hrs.Example: 'How to put a horizontal text scrolling on the form (a news line)'
8.95 hrs.Function: 'CryptGetKeyParam'
Function group: 'Cryptography Reference'
 Example: 'Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)'
9.99 hrs.Example: 'How to retrieve information about a cache entry (Internet Explorer)'
 Example: 'Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window'
14.08 hrs.Example: 'GDI+: Using Scale and Shear transformations'
 Example: 'Locking the workstation'
Google
Advertise here!