Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right Alignment !!! :(
Message
From
15/12/1996 08:12:45
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00013888
Message ID:
00015141
Views:
49
>
>I am trying to call this function within the program but it does not work can you tell me what is wrong with that ...
>
>function name " MakeMenuRtoL "
>syntaz is "BOOL MakeMenuRtoL(hmenu,fRtol)"
>our code was : when I try it this way doesn't give error:
>Gkey=Regfn("MakeMenuRtoL","I","I","c:\windows\system\user.exe")
>the returned value is ZERO


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

>but this way :
>Gkey=Regfn("MakeMenuRtoL(sysmenu,2)","I","I","c:\windows\system\user.exe")
>gives an error syas : Dynamic link library contain a function called
>MakeMenuRtoL(sysmenu,2)

this is not good as you are try to register the function and call it in the same time..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform