AmarjitSingh
asked on
Replacing MFC Default Icon
I read the tutorial at:
http://codeproject.com/gdi/replaceicon.asp
It works fine, but I after I have compiled my solution, there is no icon at the title bar of the dialog! What might I be doing wrong?
Many thanks,
Amarjit
http://codeproject.com/gdi/replaceicon.asp
It works fine, but I after I have compiled my solution, there is no icon at the title bar of the dialog! What might I be doing wrong?
Many thanks,
Amarjit
Can you see your icon in the resource editor? I usually do not replace the MAINFRAME icon, but I create a new one by importing an icon file into my project. I then replace the line that selects the icon for the project. Where and how this needs to be done depends on your project type. It's best to just search for IDR_MAINFRAME across all your project files.
ASKER
I accidently stumbled upon the answer myself. It turned out that when I re-imported a new icon from a resource, I did not rename it to "IDR_MAINFRAME", which the compiler did not spot previously, but has just now.
Sorry for any inconvienience I may have caused - but I shall see if it is necessary that I delete this question.
Sorry for any inconvienience I may have caused - but I shall see if it is necessary that I delete this question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.