Ali Imran
July 16th, 2006, 10:47 AM
I have few questions regarding static control naD HICON
1. I have an icon loaded and its handle is in a variable of type HICON, now how do I change its size (it is default 32 x 32 as original) ? I mean I want to resize it to say 16 x 16. So that when I display it on a static conrol it shows up 16 x 16.
or
2. Is there any style for a static control we can set while creating it, so that it resizes the icon (to exact width and height of itself) being displayed on it.
3. WS_EX_TRANSPARENT extended style not working on a static control, how to set the background of a static control to transparent ?
4. Can I simply type cast this way to convert an HBITMAP to HICON ?
HICON ic = (HICON) v_hBitMap_handle;
NOTE : keeping in mind that the static being discussed above is being used to display an icon on it.
Any help is highly appreciated.
stay well...
1. I have an icon loaded and its handle is in a variable of type HICON, now how do I change its size (it is default 32 x 32 as original) ? I mean I want to resize it to say 16 x 16. So that when I display it on a static conrol it shows up 16 x 16.
or
2. Is there any style for a static control we can set while creating it, so that it resizes the icon (to exact width and height of itself) being displayed on it.
3. WS_EX_TRANSPARENT extended style not working on a static control, how to set the background of a static control to transparent ?
4. Can I simply type cast this way to convert an HBITMAP to HICON ?
HICON ic = (HICON) v_hBitMap_handle;
NOTE : keeping in mind that the static being discussed above is being used to display an icon on it.
Any help is highly appreciated.
stay well...