o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Menus in multiple parent windows -

Let's say I have two windows (windows like the Internet Explorer window, or a dialog box window; it's that main parent container window with a title bar and an icon, along with the minimize maximize and close boxes), alright? I am trying to append a menu to each of them:

case WM_CREATE:
hMenu1 = CreateMenu();
hSubmenu1 = CreatePopupMenu();

AppendMenu(hSubmenu1, MF_STRING, ID_MNU_OK, "OK");
AppendMenu(hMenu1, MF_STRING | MF_POPUP, (UINT) hSubmenu1, "File1");

SetMenu(hwnd1, hMenu1);

hMenu2 = CreateMenu();
hSubmenu2 = CreatePopupMenu();

AppendMenu(hSubmenu2, MF_STRING, ID_MNU_YESMAN, "YESMAN");
AppendMenu(hMenu2, MF_STRING | MF_POPUP, (UINT) hSubmenu2, "File2");

SetMenu(hwnd2, hMenu2);
break;

That is the code. The first window's menu appears fine, but the second one's doesn't even appear. Can you help me out with this?

 

MDI Parent Key Preview -
I am using an add-in/class to subclass my menus to give them a cool style and add a bunch of capablities. The problem I am having it that the menu is placed on the MDI Parent, but when a child has focus, it won't respond to any of the shortcut keys that are specified in the menus. D


Multiple EXE Problem -
Hello Respected Members, Can anybody tell me is there any way exists to embed a different exe (like application B, which is having a MDI FORM WITH menus) to my exe (like application A, which is also having a MDI FORM With Menus) ? So, the final look will be, application A is runn


Can the menu bar be hidden without destroying the menus -
I'm enumerating the menus in a control's parent form using GetMenu, GetSubMenu, etc. It works fine, but if the menus are set .Visible =False, then understandably they are not picked up by the APIs. I want to hide the menubar completely, but still be able to enumerate the menus. Is ther


ASP.NET Menus -
[font=Verdana][size=3] Hi all, I would like to Know how to create scrolling menus in ASP.NET. The Fasct is that I've a lot of cross page links and I want those links to be displayed in Menus which open up when pointed on to the parent Item. Please help. Thanx in Advance


Menus in MDI-Forms -
It's like this, I have a MDI-Form with about 6 menus full of subss that are to be used during runtime. I also have a set of mdi-child forms with their own menus, as an addition to the 6 main. Each mdi-child form has different menus. The problem is, when a mdi-child form gets th


Menus of MDI and Child -
Ok my problem is I had an MDI form which contains Menu's created thru MemuEdito......I also had Child windows having Menus...Now the Problem is when I open the child window thru MDI MEnus the Menus of MDI goes off .......so how to keep both menus of MDI as well as Child windows visible


Handling menus at runtime -
Hi, I know how to create menus at run-time, but is it possible to arrange them? I mean, to create a sub menu and assign it its parent menu. Is there a simple way without creating the menus with the API? Or is there a free control that will do this? Thanks in advance.


Getting menus from the active window -
Hi folks! Is there a way to get all the menus and it's funcionality from the active window? I mean, doing a program in VB, and when I active another window with menus, all menus from that windows appear in my app? And when I click those menus in my app (menus that belongs to anot


How to Add menus of an MDIForm to a ChildForm -
Hi Guys, i have an MDIForm with its General menus (Open, Close, Exit, Windows cascde, etc.) and i have ChildForms. Some of these Forms also have their own menus (specially used for popup). Can you please tell me in detail how to make The MDIForm menus visible with the ChildForm menus


Subclassing Needed -
Hi, I want to take a menu that's presented on a main window, and bring it down into its child windows. I know how to capture and insert menus. Would I then have to subclass the child windows and then pass that to the menus that reside on the parent window? If I subclass, would I be


[2005] merging mdi parent/child menus -
My mdi parent has a MenuStrip with File, Edit,View.... My Child form also has a MenuStrip with File,Edit,View.... When these menus merge, I end up with the parent menu having 2 File items, 2 View items, 2 View items, etc..... Is there an easy way to merge the menus so the the


Question about menus... -
I am making up a few dynamic menu classes, and I have run into one small problem. I use SetMenu to take over the menubar of the given parent window. If there is a dummy menu in place before I use SetMenu, all is well. But if there are no menus on the form when SetMenu is called, non


More Popup Menu Issues -
I have a MDI app which I have just implemented right click popup menus. The popup menus work fine but I've noticed that when I open a child form containing a popup menu the menu on my parent form disappears. How can I retain the menu on my parent form?


hi Tech popup menu issue -
hi all , I am building a midi application with of course a midi forma and othe midi childs forms. I have the midi form with multi levels menus. now i want to activate some popup menus on some child forms. I have made some menus on each child form to use as pop up mnus and t


Menus in multiple parent windows -
Let's say I have two windows (windows like the Internet Explorer window, or a dialog box window; it's that main parent container window with a title bar and an icon, along with the minimize maximize and close boxes), alright? I am trying to append a menu to each of them: case WM_


Can't get menus working in child window in MDI app -
After reading how to add menus to a child window in an MDI app I still can't get it right. When I open a child window, the menus still get displayed in the parent MDI window, and not the child window. I have played with the mergetype property but no luck. Any ideas?


dumb windows 2000 menus -
you know how in Office 2000 you can select an option to always show full menus? well my question is how do i make it so that the Programs menu (under Start in windows), will always show full menus, not give me that arrow crap that i can't stand.


treeview check -
i have two tree view windows next to each other such that there are several parent in the left pane each with many chilren. if someone clicks on a parent and clicks add the parent and all its children is moved to the right hand listview. if a child is clickled on and then add pressed


Need help with windows form control.. -
Hi, I am developing a small windows forms application where I have a Parent window with multiple buttons clicking on each of them will open a seperate child window on top of the parent window. I have another button on the parent window which will close and destroy all child window


PUTTING ICONS INTO MENUS -
Its stupid VB doesnt allow icons in menus (excluding .Net). Is there a way to put icons into menus, not so they invert colors over mouse over, just how they are done normally. Im fed up of plain looking menus, at the same time using Third party controls that take huge amounts of cod


Creating new menus at runtime from listbox -
Hi all, I was wondering if it is possible to create new multiple menus as a listbox changes in content?


Office xp difference -
Hi, I have been using office xp and its menus are flat(really different then win9X menus) How did they make these kinds of menus and were able to run it on windows 9X. and how do you make these menus your self using vb6 and win9X


Adding my app to windows menus -
how to add my program to the windows menus like WINZIP. and if the user click on it, my program is shown up


TreeView Parent question -
I have a TreeView control with multiple Parent and Child nodes that are added dynamically at runtime. How can I determine the Parent (preferably the index of) of the child node that the user clicks? I have attempted to use Treeview1.SelectedNode.Parent.Index I keep receiving '


[2005] MDI form problem -
Hi I'm using VS 2005(with VB setting). I'm doing a database application. I've a mdi parent form with appropriate menus. Upon clicking the specific menu(eg. add employee etc.), I declare a new add employee form to be its child form and display the add employee form( so that the child f


Better menus -
is there a way to get better menus? I have code that adds 13x13 bmps to the menus.. but I would like the menus to look more like office menus? (bigger bmps.. etc) 13x13 is too small and you cant have transparent bg on them... thanks!


Relational DataSet -
I have a DataSet with 9 tables in it. See the depiction of the relations below. Each child is a one-to-many relationship with its parent. Parent -> Child Relationships / Child1 - Child of Child1/ Child2 - Child of Child2Parent / Child3 - Child of Child3/ Child4 - Child of Chil


Set parent of all windows -
How would I go about making my form the parent for every other window, and new windows(as well as new application's windows)?


Menus, Menus, Menus... -
I have a lil problem... Again with menus... The code I got from that guy that helped me worked.... BUT... it doesnt show the other folders too...Like the Start>Programs folder... I want everything in there to show up in a list box... any help? -Andrew


menus on MDI forms & MDI child forms -
is there any way you can have menus on MDI forms as well as having menus on the MDI child forms? whenever i try that, and load an MDI child form, the menus in the MDI form disappear and are replaced by the menus on the MDI child form. at the moment i've got all the menus (used as po


Menu Columns and Autohiding -
hi! How do i make menus with multiple columns, and is there a way to make menus like in Win ME, where some of them are hidden until that arrow is clicked??? Thanx for any ideas!!


Windows Menu, Please help -
Hi, I was wondering if any one here know if it is possible to chnage the windows menu using API. I have a friend in Sweden who purchased a PC which comes with Swidish version of Win 2000, naturally all the menus are in Swedish. I was wondering if there is a way i can change the menus


Verify a parent window -
I'm getting a list of all the visible windows on the desktop and want to find out by using the window's handle if it is a parent window. I know about the GetParent API: GetParent returns the handle of the parent window of another window. For example, the parent of a button would no


Adding menus at run time -
Hi I want to add menus at runtime. The menus can be sub menus with in a menu or popup menu. Can any body tell me how to do it? Thanks Shaunak


Question about the menus used in the VS IDE. -
Simple question really... I really REALLY like the menus used in the VS IDE and would like to know if I can use those menus in my apps instead of the vanilla menus that we are used to using?? I know I probably have to add the component to the project but i dont know its name...


General tips about menus in MDI apps -
I have a general question I haven't found a good answer to on my own, so hopefully someone has a tip. I have an MDI application with many different types of forms. Some can be printed, some can be saved to files, etc. I would prefer that the MDI parent form's menus not be availabl


MDI Forms & Menus -
It seems I'm having a lot of issues with MDI forms at the moment!!!!!! I'm still relatively new to the whole MDI thing, so please bear with me. OK, I've got a menu as part of the main MDI parent. On many of the child forms I've also got a context-sensitive popup menu associated wi


Accessing Menu Items of a Child Window -
Hello all, I'm building a software that needs to access menu items from a child window that has the same menu names as its parent. For example: The parent browser window has the regurlar, File, Edit , View etc. The child window (of which I know its class name, not sure if I can


Unwanted Collapsing Menus - Windows 2000 -
Hello all. I just got a new box, installed Windows 2000, downloaded the updates, but I have a problem... When I go to Start>Programs the menus now collapse, i.e. - it shows me the latest four or five programs I opened with an annoying arrow which I have to click on to display the


menus, menus, menus -
I want to create a bookmark menu and I need help. I don't want to use the Netscape or IE menus. I do want to add bookmarks in my own directory also want a way to make .url files to be displayed in the menu as shortcuts Like the IE favorites menu.