I have a static label on a dialog with an icon in it, how do i change it to a different icon?
Posted on 2001-03-24 20:31:00 by HeroInc
i'm not sure now, but try PostMessage or SendMessage with the STM_SETIMAGE parameter. that should work. look up in you api reference what parameters you have to pass. bye
Posted on 2001-03-25 02:55:00 by [SaFc0n]
Actually it was STM_SETICON, but i wouldnt have found it if you didnt suggest STM_SETIMAGE. Heres the message... STM_SETICON wParam = (WPARAM) (HICON) hicon; // handle of the icon lParam = 0; // not used; must be zero An application sends the STM_SETICON message to associate an icon with an icon control. Parameters hicon Value of wParam. Identifies the icon to associate with the icon control. Return Value The return value is the handle of the icon previously associated with the icon control, or zero if an error occurs. See Also LoadIcon, STM_GETICON
Posted on 2001-03-25 11:13:00 by HeroInc