MFC C++ - Geeks to Go Forums

Jump to content

Log in Register Register Malware removal guide How it works

MFC C++ stupid question

#1 willsanders

  • Group: Member
  • Posts: 2
  • Joined: 27-April 06

  Posted 27 April 2006 - 05:03 PM

hi,
when you create, using the wizard, any MFC APPLICATION you get a little MFC icon as the top left hand corner icon of your product, just a stupid question really- how can i change it to an icon i have made?!?!?
cheers :whistling:

#2 StephenL

  • Group: Member
  • Posts: 12
  • Joined: 25-March 06

Posted 28 April 2006 - 12:57 PM

There's a link below about custom icosn etc..

http://www.codeproje...foldericons.asp

hopefully there's enough information for you there, not had a proper look really :whistling:

It looks like you can change the icon with code, setup a HICON handle to an icon as shown on that link and then call - myForm->SetIcon(myIcon, true), where 'myForm' is the form you are changing and myIcon is the HICON handle you have setup.

Cheers,
Steve

Share this topic: