Re: Main Icon Problem..

Tech-Archive recommends: Fix windows errors by optimizing your registry



Dialog-based apps are an example of this, and the AppWizard generates the code to load and
display the icons.
joe
On Wed, 7 Feb 2007 08:45:30 -0700, "Dan Baker" <dbmail> wrote:

"ovatta" <ovatta@xxxxxxxxx> wrote in message
news:45c9e358$0$23983$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
In my .rc file I have: IDR_MAINFRAME ICON DISCARDABLE
"my.ico"
It have 2 type 32x32 256 colors and 16x16 256 colors
It's the only icon in the project..
After I compile the .exe file have this icon but if I run the program the
main windows present the default icon (white-blue) and not the my.
How I can set the icon?
I could change it in run time mode?

I've had problems with MFC Wizard projects that don't use Doc/View. It
seems like you have to set the icon your self in the mainframe. I'll try to
hunt some code down later.

DanB

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Name change
    ... windows - you just don't have the room for anything else if you ask me. ... You can do a lot with an 80x25 character display. ... icon for each window (either globally or on just the current virtual ... I'd say it's the CPU itself (or one ...
    (uk.people.support.depression)
  • Re: Capture the Computer Desktop
    ... it should capture the entire display and save it if it is called correctly ... icon you are using. ... Private Const BITSPIXEL = 12 ... Obviously that address is really a dummy, but basically I'll drink almost ...
    (microsoft.public.vb.general.discussion)
  • Re: Name change
    ... You can do a lot with an 80x25 character display. ... icon for each window (either globally or on just the current virtual ... Umm, ish, okay, so I do have a temperature displayed. ... I'd say it's the CPU itself (or one ...
    (uk.people.support.depression)
  • Re: Adding an Icon To a CPropertySheet
    ... Ok Joe, ... you have explicitly set the value to "Show no icon". ... The ErrorString function, which converts the numeric error code to a string and is an ... can be found on my MVP Tips site. ...
    (microsoft.public.vc.mfc)
  • Re: Adding an Icon To a CPropertySheet
    ... Nevermind Joe, I found it. ... "Joseph M. Newcomer" wrote: ... you have explicitly set the value to "Show no icon". ... Note that ASSERT resets the error code to 0, ...
    (microsoft.public.vc.mfc)