Purpose |
Change both the dialog icon in the caption, and the icon shown in the ALT+TAB task list. |
Syntax |
DIALOG SET ICON hDlg, newicon$ |
Remarks |
DIALOG SET ICON changes both the small icon (as used in the dialog caption bar), and the large icon (visible in the icon task list presented during ALT+TAB task switching). |
hDlg |
Handle of the dialog that is to have its icon changed. |
newicon$ |
A string expression which specifies the name of the icon in the resource file. If the icon resource uses an integral identifier, newicon$ should begin with a Number symbol (#), followed by the integral identifier in ASCII format. For example, "#998". Otherwise, the text identifier name should be used. |
Restrictions |
DIALOG SET ICON cannot use bitmap files. 32x32 pixel icons produce the most visually pleasing results. |
See also |
Dynamic Dialog Tools, CONTROL ADD IMAGE, CONTROL ADD IMAGEX, CONTROL ADD IMGBUTTON, CONTROL ADD IMGBUTTONX, CONTROL SET IMAGEX, CONTROL SET IMGBUTTON, CONTROL SET IMGBUTTONX, DIALOG SET TEXT |