Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP equivalent to MAKELPARAM
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01147615
Message ID:
01147912
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform