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 889859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:37:58+00:00 2026-05-15T13:37:58+00:00

I ran into this issue when trying to add a CMFCMenuButton to an existing

  • 0

I ran into this issue when trying to add a CMFCMenuButton to an existing MFC application. It worked properly, and even resized the button to accommodate the dropdown arrow. But it didn’t draw the dropdown arrow, and when I hovered over the button, I saw the following debug output:

> Can't load bitmap: 42b8.GetLastError() = 716
> CMenuImages. Can't load menu images 3f01

It turns out that even with Visual Studio 2010 RTM, when you create a brand new MFC Dialog based application, the CMFCMenuButton doesn’t draw the arrow and shows the same errors. Initially I assumed that I didn’t have something installed or registered correctly. However, the NewControls example from the MFC Feature Pack showed the dropdown arrow perfectly.

What is missing?

  • 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-05-15T13:37:59+00:00Added an answer on May 15, 2026 at 1:37 pm

    The reason I posted this question is because I couldn’t find any answers via Google. The closest I came when researching it was a couple hacks that didn’t seem to be the real solution. After pouring over the NewControls example, I finally found the culprit.

    At the bottom of the default .rc file for a project, there is the following code:

    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    LANGUAGE 9, 1
    #include "res\YOUR_PROJECT_NAME.rc2"  // non-Microsoft Visual C++ edited resources
    #include "afxres.rc"      // Standard components
    #endif
    

    The NewControls example’s .rc file looks like this:

    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
    LANGUAGE 9, 1
    #include "res\NewControls.rc2"  // non-Microsoft Visual C++ edited resources
    #include "afxres.rc"      // Standard components
    #ifndef _AFXDLL
    #include "afxribbon.rc"      // Ribbon and control bars
    #endif
    #endif
    

    Adding the afxribbon.rc enables the bitmap resources needed for the controls in the MFC Feature pack update. Now you can’t just simply add the missing code to the bottom of the .rc file. If you do that, every time you edit the resource file using the visual designer, your added code will be removed. The solution to the problem is to add this to the bottom of the YOUR_PROJECT_NAME.rc2 file:

    #ifndef _AFXDLL
    #include "afxribbon.rc"      // Ribbon and control bars
    #endif
    

    Make sure you have an empty line at the bottom of the file, or the resource compiler will complain. I’m not sure what setting needs to be adjusted in order for the visual designer to automatically include afxribbon.rc like it does in the NewControls example project. But adding it to the .rc2 seems to fix the problem.


    Update

    Keep in mind that you can use the IDE to modify your RC file:

    • Right-Click the RC file and select Resource Includes…:

    Right-Click RC File

    • Paste the new code into the Compile-time directives area:

    Code Pasted into Window

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

Sidebar

Related Questions

No related questions found

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.