1. WinAPI "LoadMenuA"?

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

new topic     » topic index » view message » categorize

2. Re: WinAPI "LoadMenuA"?

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
> 
> 
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: WinAPI "LoadMenuA"?

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...

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu