>the problem is you are not calling it with a menu handle
>to get the the handle for the window you have to register and use 2 additional API calls
>FindWindow - this returns an Integer value (a window handle) and accepts 2 parameters (character) u can call it
>with 0,"Foxpro window name hre"
>
>as I said this will give you the window handle
>nou you sould call GetMenu
>GetMenu accepts a window handle (the one you got from the previous call) and will return you an Integer value (menu handle for that window)
>which you can pass to your function
>
>btw, MakeMenuRtoL is no longer supported in the win32 api
Arnon,
Still it is not working... please check the next code as you recommended..
SET LIBRARY TO SYS(2004)+"foxtools.fll"
WHAN=FindWindow(0,"Foxpro Window Name")
" The above "FindWindow" function is not available in foxtool.fll
but we found an equivalent command to get the window handle in FP"
WHAN=MAINHWND()
WHMEN=GetMenu(whan)
"This command gives an error since FP does'nt have the GetMenu function. and hence we don't know whether the syntax is correct"
So, what do you think....
Ahmad
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>