RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
ComCtrls.GetComCtlVersion Function

Indicates which version of ComCtl32.dll is installed.

Pascal
function GetComCtlVersion: Integer;
C++
int GetComCtlVersion();

ComCtrls

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:  

ConstantValueMeaning  

Constant 
Value 
Meaning 
$00040046  
The version of ComCtl32.dll installed with Internet Explorer version 3.  
$00040047  
The version of ComCtl32.dll installed with Internet Explorer version 4.  
$00040048  
The version of ComCtl32.dll installed with Internet Explorer version 4.01.  
$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 }  

if (GetComCtlVersion() >= ComCtlVersionIE4) // IE4 is installed 

 

TCoolBar 

TToolBar

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!