Only, make sure, if you're going to use the resource editor, that the image
does not have more than 256 colors otherwise it will get mangled by the IDE.
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
Well, first you have to create an icon; a bitmap is not an icon, it is a
bitmap. Renaming
the file to .ico doesn't change the fact that it is a bitmap image.
So first, load the bitmap file somewhere, such as in Paint. Check its
color depth, such
as 8-bit or 24-bit. Do a Copy.
Go to your project. Select the icon IDR_MAINFRAME. Locate the image
that has the same
color depth as your original imate. Go to the Edit menu, select the item
Delete. Then do
a Paste.
You will have to create a 16x16 image as well.
Delete all unused image formats for the icon.
joe
On Tue, 10 Apr 2007 09:20:01 -0700, kunal s patel
<kunalspatel@discussions.microsoft.com>
wrote:
Sir,
I downloaded one .bmp file and i want to make that file my icon (so that
it
can be seen in the left most corner instead of the regular mfc
icon)....Now
what are the exact steps to do it if its possible
kunal
"Joseph M. Newcomer" wrote:
Once you import the icon, delete the icon called IDR_MAINFRAME, change
the name of your
imported icon to IDR_MAINFRAME.
Show the code. LoadIcon doesn't do anything but give you a handle to
the icon; unless you
set the icon (note the code that is already in OnInitDialog) loading the
icon will have no
effect.
Where did the icon come from? If it isn't an actual icon file (.ico is
not an indicator
of this) then it will be seen as a bitmap file.
joe
On Mon, 9 Apr 2007 22:22:02 -0700, kunal s patel
<kunalspatel@discussions.microsoft.com>
wrote:
Hi all,
I want to add a custom icon at the top left corner of my dialog based
mfc
application. Now i dont want to create a new icon file on my own....so
here
are the steps i followed
1) right clicked on icon folder n then click add resource
2) click import after selecting icon from resource type
3) import the icon file from my machine (ico file)
Now when i import it..it some how goes under the bitmap folder even
though
it has a .ico extension......secondly how do i load this icon in my
application.....i tried changing the loadicon statement in main
application
but it doesnt show me the new icon
How should i go about it
kunal
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm