1. RE: WinAPI "LoadMenuA"?
- Posted by Al Getz <Xaxo at aol.com> Apr 26, 2001
- 386 views
Euman wrote: > A Question concerning: > > LoadMenu = link_c_func(user32, "LoadMenuA", {C_INT, C_POINTER},C_INT) > > The Pointer is what I have trouble with because it must be a 0 > terminated > string > How can I, If I have setup integer based pointers to my menu system > return the right menu. I thought that if someone knows the ins-outs of > MAKEINTRESOURCE > This might work. > > --LPTSTR MAKEINTRESOURCE( > --WORD wInteger > > hmenu = c_func(LoadMenu, {hInst, IDM_TIME}) > hsubmenu = c_func(xGetSubMenu,{hmenu, 0}) > > Any Ideas? > > euman at bellsouth.net > > Euman > > You cant use CreateMenu() and SetMenu() ? You might want to look at LoadMenuIndirect() also. --Al
2. RE: WinAPI "LoadMenuA"?
- Posted by Al Getz <Xaxo at aol.com> Apr 26, 2001
- 383 views
Euman wrote: > I think I can get away with doing it this way > hmenu = c_func(xGetMenu, {hwnd}) > hsubmenu = c_func(xGetSubMenu,{c_func(xGetSubMenu,{hmenu, 1}), 0}) > > versus, LoadMenu > I'll get back to you if it does or doesnt work... > > Thanks for the help: > Euman > > ----- Original Message ----- > From: "Al Getz" <Xaxo at aol.com> > To: "EUforum" <EUforum at topica.com> > Sent: Thursday, April 26, 2001 15:12 > Subject: RE: WinAPI "LoadMenuA"? > > > > > > > > > > Euman wrote: > > > A Question concerning: > > > > > > LoadMenu = link_c_func(user32, "LoadMenuA", {C_INT, C_POINTER},C_INT) > > > > > > The Pointer is what I have trouble with because it must be a 0 > > > terminated > > > string > > > How can I, If I have setup integer based pointers to my menu system > > > return the right menu. I thought that if someone knows the ins-outs of > > > MAKEINTRESOURCE > > > This might work. > > > > > > --LPTSTR MAKEINTRESOURCE( > > > --WORD wInteger > > > > > > hmenu = c_func(LoadMenu, {hInst, IDM_TIME}) > > > hsubmenu = c_func(xGetSubMenu,{hmenu, 0}) > > > > > > Any Ideas? > > > > > > euman at bellsouth.net > > > > > > Euman > > > > > > > > > > You cant use CreateMenu() and SetMenu() ? > > You might want to look at LoadMenuIndirect() also. > > <snip> I guess i misunderstood, i thought you were trying to load a menu resource, which is what LoadMenu would be used for. I wasnt really sure if you might just want to create your own menu. Let me know how you make out with it. --Al