Scalabium Software

SMReport Autogenerated
Knowledge for your independence'.
Home Delphi and C++Builder tips


#61: How can I read the vertical refresh rate of the display?

If you need retrieve the value of the vertical refresh rate of the your monitor, you can call the GetDeviceCaps API's function with VREFRESH parameter.

This feature are available on Windows NT platform only, so before using you must check the Windows version. For example,

var ov: TOSVersionInfo;
     vr: Integer;
begin
  ov.dwOSVersionInfoSize := SizeOf(ov);
  GetVersionEx(ov);
  if OV.dwPlatformID = VER_PLATFORM_WIN32_NT then
  begin
    vr := GetDeviceCaps(Form1.Canvas.Handle, VREFRESH);
    Label.Caption := 'Frequence: ' + IntToStr(vr) + ' Hz';
  end;
end;


Published: January 19, 2000

See also
 
ExcelFile Viewer
Metafile Convert
SMDBGrid
Paradox Password Recovery
SMMsg suite
Paradox ActiveX
Paradox Viewer
MAPIMail
Viewer for MS Outlook Messages
Viewer for TNEF-files (winmail.dat)
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2022, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport/SMImport suites