LMD VCL - Vista Support

From LMD
Revision as of 19:42, 24 April 2007 by Rafael (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This topic describes Vista specific features of LMD VCL shared runtime.

Vista detection

LMD SysIn unit provides several system information services. To detect whether current operating system is Windows Vista:

  • Check LMDSIWindowsVista variable whether current operating system is exactly Windows Vista.
  • Check LMDSIWindowsVistaUp variable whether current operating system is Windows Vista or better.

Aero Glass detection

To check whether Aero Glass is currently enabled and active, use functions and variables of LMDDwmAPI unit. The global LMDDwmEnabled variable reports whether Aero Glass is enabled. In addition the state of each window can be tested and modified:

<delphi>function LMDWndIsDwmEnabled(Handle:THandle):Boolean;</delphi> Returns true when Dwm is enabled for a specific window (specified by Handle parameter).

<delphi>function LMDWndDwmDisable(Handle:THandle):Boolean;</delphi> Disables Aero Glass feature for the window specified by Handle parameter.

<delphi>function LMDWndDwmEnable(Handle:THandle):Boolean;</delphi> Enables Aero Glass feature for a window specified by Handle parameter. Certainly only applicable, when LMDDwmEnabled returns true.

Vista Dialogs

TLMDTaskDialog Open/SaveDialog


Soon: Glass area support