Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving a form programmatically
Message
 
À
12/07/2002 12:49:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00678118
Message ID:
00678162
Vues:
15
In addition to solution which Sergey point you to, for all VFP versions including 7 you can add:
DECLARE INTEGER GetActiveWindow IN WIN32API,
and use:
SendMessage(GetActiveWindow(), 0x112, 0xF012, 0x0) to address the Window Handle the very same way.


>Hi All,
>
>Here's an odd one... I have a form in which I turn off the title bar and set the BorderStyle to 0-None. I now want to be able to drag/move this form by using the mouse just as if it had a title bar. I tried some routines using the MouseDown & MouseMove events of the form but got some very quirky results. The form seemed to jump back and forth.
>
>Anyone have a good idea?
>
>Thanks!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform