Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cut, Copy and Paste functions
Message
 
À
21/07/1998 17:28:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00119820
Message ID:
00120193
Vues:
21
Hi Jim --

>>This doesn't work because the selected text could be on any form and any control.<<

Are you comfortable with APIs? The typical way to do this would be to use GetFocus or GetForegroundWindow to obtain the hWnd of the active textbox. Then call SendMessage with EM_GETSEL. On return, wParam will hold the starting position, and lParam the ending position, of the selected text. If these values are equal, no text is selected.

Later... Karl
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform