OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You can access TIcon through an HICON.
To get an HICON from a TIcon object, use the HICON() operator with the TIcon object as the parameter. The HICON() operator is almost never explicitly invoked:
This code automatically invokes the HICON() conversion operator to cast the TIcon object to the correct type.
The other access function in TIcon, called TIcon::GetIconInfo, is available for 32-bit applications only. GetIconInfo takes as its only parameter a pointer to a ICONINFO structure. The function fills out the ICONINFO structure and returns true if the operation was successful. For example, suppose you create an icon object, then want to extract the icon data into an ICONINFO structure. The code would look something like this: