I have imported a 64*64 icon image into my program's resource section, and im trying to extract that icon using LoadIcon or LoadImage and then show it on a static, the problem is that the icon is always shown with 32*32 dimensions, what am i doing wrong ?
XCHG,
I'm not exactly sure, according to the MSDN documentation SS_ICON auto sizes the static control to the size of the icon loaded.
WIN32.HLP:
SS_ICON Specifies an icon is to be displayed in the dialog box. The given text is the name of an icon
(not a filename) defined elsewhere in the resource file. The icon can be an animated cursor.
The style ignores the nWidth and nHeight parameters; the control automatically sizes itself
to accommodate the icon.
I've not done much in the way of changing the size of icons, but I also noticed that in WIN32.HLP, that CreateIconFromResourceEx allows you to specify Desired to set the Width and Height. I hope this has sent you in the right direction.
Regards,
Bryant Keller
I'm not exactly sure, according to the MSDN documentation SS_ICON auto sizes the static control to the size of the icon loaded.
WIN32.HLP:
SS_ICON Specifies an icon is to be displayed in the dialog box. The given text is the name of an icon
(not a filename) defined elsewhere in the resource file. The icon can be an animated cursor.
The style ignores the nWidth and nHeight parameters; the control automatically sizes itself
to accommodate the icon.
I've not done much in the way of changing the size of icons, but I also noticed that in WIN32.HLP, that CreateIconFromResourceEx allows you to specify Desired to set the Width and Height. I hope this has sent you in the right direction.
Regards,
Bryant Keller
Awesome. that was it. thanks man i appreciate it.