Resizing Icons
C / C++ / MFC
3
Posts
2
Posters
1
Views
1
Watching
-
Is there any easy way to resize an icon to 16x16 or a custom size through a windows function. I can think of a few ways to do this the long way ( one involving the use stretchblt on memory DC's ). Basically I'm using these icons with my own subclassed buttons. Thanks.
-
Is there any easy way to resize an icon to 16x16 or a custom size through a windows function. I can think of a few ways to do this the long way ( one involving the use stretchblt on memory DC's ). Basically I'm using these icons with my own subclassed buttons. Thanks.
Try this:
hnewicon = CopyImage(holdicon, IMAGE_ICON, 16, 16, 0);
where 16,16 are the new dimensions -
Try this:
hnewicon = CopyImage(holdicon, IMAGE_ICON, 16, 16, 0);
where 16,16 are the new dimensions