Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activate Window using hWnd
Message
De
05/01/2005 17:24:03
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
 
 
À
05/01/2005 17:02:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00974484
Message ID:
00974536
Vues:
59
Thanks Herman. Works like a charm. I see the second parameter is WM_ACTIVATE. What is the third parameter (1) for?

>>Is there a way to activate a child IDE window (code window, etc.) using a Win32 API call? I have the hWnd, but for some reason I can't get it to activate from a toolbar button. I've tried SetWindowPos(), ShowWindow(), SetActiveWindow(), and SetForegroudWindow(), but none of these seem to work. Will VFP allow activating a window in this manner?
>
>Hi Joel,
>
>You can Post/Send WM_ACTIVATE Message. Try something like this:
>
>PostMessage( hWnd, 6, 1, 0 )
>
>
>HTH
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform