Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:00:17+00:00 2026-06-10T05:00:17+00:00

I have to make changes to an existing Application developed using MFC. this application

  • 0

I have to make changes to an existing Application developed using MFC. this application uses the SDI template with Document\View architecture. I need to place an icon on the window that is being shown at the execution of the Application. At present it does not have any icon to show (some MFC applications by default shows MFC logo). can somebody help me out? I have googled alot but didn’t get any success.
Also I want to know why do we use IDR_MAINFRAME (same name) for all the resources in the resource.h file. and i have observed its value is fixed at 128.is there any specific reason for this? kindly suggest some good links or books on MFC if u have come across previously?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:00:19+00:00Added an answer on June 10, 2026 at 5:00 am

    I’d recommend you create a new MFC App just to see what the defaults are. You should see that in your .RC file there is a line that looks something like this:

    IDR_MAINFRAME   ICON       "res\\app.ico"
    

    If it’s not there you can add it. Looking in the MFC file winfrm.cpp you can see MFC trying to load the icon in CFrameWnd::GetIconWndClass()

    HICON hIcon = ::LoadIconW(hInst, ATL_MAKEINTRESOURCEW(nIDResource));
    

    Since resources are identified by their type AND id you can use the same id for multiple resources of different types. This can be very useful when the MFC frame code needs to load a toolbar, menu, and icon etc. without having the developer needing to specify a different id for each item.

    The best MFC book I’ve seen on MFC is ‘Professional MFC’ by Mike Blaszczak. It doesn’t have some of the new ‘MFC Feature Pack’ additions but it covers the old stuff very well. I also recommend that you download a source searching tool like Agent Ransack for searching through MFC source code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application solution existing under Visual Studio 2010. Part of this
I have had to make changes to a trigger and assumed that running an
I have uploaded a app in production mode to linode. I want make changes
i have an swf file, uploaded in server. But whenever I make changes to
I have an excel file that I need to make some changes. I need
Welcome, I notice that Youtube make some changes into their website code. Anyone have
I'd like to make a app who changes me the airplane mode. I have
I have existing managed and unmanaged software using an ActiveX component supplied by a
We have distributed web application developed few years back on JDK 5. How JMX
I'm developing a plugin UI for an existing application using PyQt4. The window is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.