Re: Dynamic icon on dialog

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.


.



Relevant Pages

  • Tix and Grid widget
    ... It seems strange that so many people have requested for the ... functionality of a grid widget (like the wxTable, I believe, in ... wxWindows), and none has offered to add the necessary code in Tix.py to ...
    (comp.lang.python)
  • Re: High resolution timers on AT91SAM926x
    ... With all those options, I finally have HRT ... functionality. ... strange thing is that jitter of my little example ...
    (Linux-Kernel)
  • Re: DVD burner only treats CDs
    ... something in the cache that's blocking any further functionality. ... That's strange, ...
    (microsoft.public.windowsxp.hardware)
  • Re: Managed c++ DLL call from C#
    ... Aaaaah! ... That did the trick! ... Strange that this is not mentioned in any of the "how to wrap your C++ ... Will do some more experiments with calling code right away though ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Adele Marcus: her only CD
    ... You mean as opposed to a dastardly attempt to trick the public? ... You seem so forgiving all of a sudden. ... How strange? ... C'est la vie, ...
    (rec.music.classical.recordings)