Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP equivalent to MAKELPARAM
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01147615
Message ID:
01147912
Views:
17
>Carlos,
>
>The MAKELPARAM macro merges two WORDs (16 bits each) in one DWORD (32 bit). This is OS syntax:
>
>LPARAM MAKELPARAM(
>    WORD wLow,
>    WORD wHigh
>);
>
>And a equivalent VFP function:
>
>FUNCTION MakeLParam(nLo, nHi)
>RETURN m.nLo + m.nHi * 0x10000
>
>Note that neither nLo nor nHi should exceed 0xffff, since they are WORDs.

That worked, thank you Anatoliy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform