Gets the static control's icon image, if there is one. Only the image type of static control can have an icon.


Programmers should manage the image objects as they think best. See the .Image documentation for a discussion of this. The static control does not make a copy of the icon, nor does it release an icon.


This method takes no arguments.

Return value:

The current icon .Image object for the control, if there is one. If the control does not have an icon set, then .nil is returned.


This example ...

staticControl = self~getStaticControl(IDC_ST_ICON)
icon = staticControl~getIcon