Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sysmenu of a form
Message
De
19/10/2009 06:47:16
 
 
À
19/10/2009 03:32:35
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01429815
Message ID:
01429826
Vues:
134
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>
>I need to open the sysmenu of a form via code. How to do this?
>
>Agnes

Agnes,

I have this code in the Click of a form's commandbutton
#define WM_COMMAND 0x0111
#define WM_SYSCOMMAND	0x0112

#define SC_KEYMENU	0xF100
#define	WM_CHAR 0x0102

declare integer PostMessage in user32.dll long, long, long, long

&& select the menu
=PostMessage (m.thisform.hwnd, WM_SYSCOMMAND, SC_KEYMENU, 0)

&& make it drop down
=PostMessage (m.thisform.hwnd, WM_CHAR , asc(space(1)), 0)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform