Show: Delphi C++
Display Preferences

Vcl.ComCtrls.GetComCtlVersion

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetComCtlVersion: Integer;

C++

extern DELPHI_PACKAGE int __fastcall GetComCtlVersion(void);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

Indicates which version of ComCtl32.dll is installed.

The appearance and behavior of some common controls, such as tool bars and cool bars, varies depending on which version of ComCtl32.dll is installed. UseGetComCtlVersion to determine which version is installed. GetComCtlVersion returns an integer that includes the major version number as the high-order word and the minor version number as the low-order word.

Installing Microsoft's Internet Explorer on a system affects which version of ComCtl32.dll is installed. To help determine which version of Internet Explorer is installed, the ComCtrls unit defines several constants:



Constant Value Meaning

ComCtlVersionIE3

$00040046

The version of ComCtl32.dll installed with Internet Explorer version 3.

ComCtlVersionIE4

$00040047

The version of ComCtl32.dll installed with Internet Explorer version 4.

ComCtlVersionIE401

$00040048

The version of ComCtl32.dll installed with Internet Explorer version 4.01.

ComCtlVersionIE5

$00050050

The version of ComCtl32.dll installed with Internet Explorer version 5.



To quickly determine which version of Internet Explorer is installed, you can compare the return value ofGetComCtlVersion with these constants. For example:

ifGetComCtlVersion >= ComCtlVersionIE4 then { IE4 is installed }

See Also

Personal tools
In Other Languages
Previous Versions
Assistance