Re: Dynamic icon on dialog
- From: "GT" <ContactGT_remove_@xxxxxxxxxxx>
- Date: Mon, 2 Apr 2007 11:19:44 +0100
HICON icon = (HICON)::LoadImage(AfxGetInstanceHandle(),
MAKEINTRESOURCE(icon_id_here),
IMAGE_ICON,
16, 16,
LR_SHARED);
c_Icon.SetIcon(icon);
Thank you Joe, the LoadImage code has done the trick. It seems strange to me
that MS would remove functionality when deriving SetIcon operation on
CStatic and removing the size parameter - they could have just left it in
there with a default 'large' value.
.
- Follow-Ups:
- Re: Dynamic icon on dialog
- From: Joseph M . Newcomer
- Re: Dynamic icon on dialog
- Prev by Date: Re: VS2005 & Vista?
- Next by Date: Re: COleDropTarget not working in Vista
- Previous by thread: Listbox of File Names does not Filter in Open File Dialog
- Next by thread: Re: Dynamic icon on dialog
- Index(es):
Relevant Pages
|