Menu not loading????
-
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
-
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
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
-
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
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