1. WinAPI "LoadMenuA"?
- Posted by Euman <euman at bellsouth.net> Apr 26, 2001
- 392 views
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
2. Re: WinAPI "LoadMenuA"?
- Posted by Euman <euman at bellsouth.net> Apr 26, 2001
- 375 views
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> 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. > > > --Al > > > > > >
3. Re: WinAPI "LoadMenuA"?
- Posted by Euman <euman at bellsouth.net> Apr 26, 2001
- 393 views
YES, it works well....I still would like to know how to LoadMenu in Euphoria.. I can squeeze by with this cause it's pretty quick... Euman > 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...