Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Menu not loading????

Menu not loading????

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashsri
    wrote on last edited by
    #1

    Hi, I have done a project and it was working fine all these days. Finally I had to add one more function so I created a new toolbar and attached the function to it,but when I run, this new toolbar button is not showing up. I also added this item in the menu bar....after running it is not showing up....any idea why is it acting like this??? Please do help, i have a deadline. I am sure it is nothing to do with the project, so I was thinking is this something to do with the system files of vc++. Thanks a lot

    J 1 Reply Last reply
    0
    • A ashsri

      Hi, I have done a project and it was working fine all these days. Finally I had to add one more function so I created a new toolbar and attached the function to it,but when I run, this new toolbar button is not showing up. I also added this item in the menu bar....after running it is not showing up....any idea why is it acting like this??? Please do help, i have a deadline. I am sure it is nothing to do with the project, so I was thinking is this something to do with the system files of vc++. Thanks a lot

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      ashsri wrote: I am sure it is nothing to do with the project, so I was thinking is this something to do with the system files of vc++. Wrong! I've been there too many times, always look at the project (source files) first. (MFC 6.0 has a few minor (ligitimate) memory leaks). ----------------------------------------------------------------------------- You can not attach a message function to a toolbar. A message function is associated with a message, nothing more. ----------------------------------------------------------------------------- What do you mean you created a new toolbar? If that is actualy what you did, then you have to write code to switch to the new toolbar (or it will not show up), so you can use it. Now I get the impression that you wanted to but did not add it to the existing toolbar. Question: Did you create a new menu-bar the same way you created a new toolbar? If you did, then you have the same problem in both places. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

      A 1 Reply Last reply
      0
      • J John R Shaw

        ashsri wrote: I am sure it is nothing to do with the project, so I was thinking is this something to do with the system files of vc++. Wrong! I've been there too many times, always look at the project (source files) first. (MFC 6.0 has a few minor (ligitimate) memory leaks). ----------------------------------------------------------------------------- You can not attach a message function to a toolbar. A message function is associated with a message, nothing more. ----------------------------------------------------------------------------- What do you mean you created a new toolbar? If that is actualy what you did, then you have to write code to switch to the new toolbar (or it will not show up), so you can use it. Now I get the impression that you wanted to but did not add it to the existing toolbar. Question: Did you create a new menu-bar the same way you created a new toolbar? If you did, then you have the same problem in both places. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

        A Offline
        A Offline
        ashsri
        wrote on last edited by
        #3

        Hi, I mean, I added few more items on the menu and the toolbar, to the one already existing. but it is not showing up when I run. I need not add any code, as I have already done it. So what I did was, just add or more items for the menubar and toolbar,and it is not showing up...thanks a lot for the help you are doing. thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups