<FONT FACE=monospace>How can I create for my program a <b>Menubar</b> and <b>Toolbar</b>, similar to of the <b>Visual C++ 6.0?</b><br>Thank you...</font>
You need to create a project in VC++ .Then : <br><br>INsert -> Resource-> Menu/Toolbar .<br><br>Whatever you want.<br><br>Does this answer your question ?<br>Thanx<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A> <p>Siddhartha Singh<br><a href=mailto:siddhu_singh@hotmail.com>siddhu_singh@hotmail.com</a><br><a href=siddhu.freehosting.net> </a><br>
To add a MenuBar to your application you must add a menubar resource to your resource file (example.rc)<br>Something like this:<br>// begin example.rc<br>#include <windows.h><br>#include "example.h"<br><br>MYMENU MENU<br>{<br> POPUP "&One"<br> {<br> MENUITEM "&Alpha", IDM_ALPHA<br> }<br> MENUITEM "&Help", IDM_HELP<br>}<br><br>MYMENU ACCELERATORS<br>{<br> VK_F2, IDM_ALPHA, VIRTKEY<br> VK_F1, IDM_HELP, VIRTKEY<br>}<br>//end example.rc<br><br>Also you must declare your identificators in your .h file, in this case example.h:<br>// begin example.h<br>#define IDM_ALPHA 100<br>#define IDM_HELP 101<br>// end example.h<br><br>After this call your menu from your program using:<br><br>wcl.lpszMenuName = "MYMENU";<br>hAccel= LoadAccelerators(hThisInst, "MYMENU"<br><br>where wcl is your main window class.<br>Good luck!<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.