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:
01147630
Vues:
17
This message has been marked as the solution to the initial question of the thread.
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform