Maximiser une apli

Résolu
jnbrunet Messages postés 258 Date d'inscription samedi 25 décembre 2004 Statut Membre Dernière intervention 13 novembre 2012 - 2 avril 2005 à 18:45
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 2 avril 2005 à 20:23
Comment maximiser une application qui est minimiser si j'ai son handle?

Jn

3 réponses

Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
2 avril 2005 à 20:23
Const SW_HIDE = 0 ' Cache la fenêtre et en active une autre
Const SW_NORMAL = 1 ' Synonyme de SW_RESTORE
Const SW_SHOWMINIMIZED = 2 ' Active et réduit la fenêtre
Const SW_SHOWMAXIMIZED = 3 ' Active et Agrandit la fenêtre
Const SW_SHOWNOACTIVATE = 4 ' Displays a window in its most recent size and position. The active window remains active
Const SW_SHOW = 5 ' Active et affiche la fenêtre à sa taille et position courante
Const SW_MINIMIZE = 6 ' Réduit la fenêtre et active la prochaine
Const SW_SHOWMINNOACTIVE = 7 ' Affiche et réduit la fenêtre. The active window remains active
Const SW_SHOWNA = 8 ' affiche la fenêtre sans l'activée
Const SW_RESTORE = 9 ' Active et affiche la fenêtre à sa taille et position initiale
Const SW_SHOWDEFAULT = 10 ' Sets the show state based on the SW_ flag specified in the STARTUPINFO

Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

ShowWindow Hwnd, 4

Daniel
3
econs Messages postés 4030 Date d'inscription mardi 13 mai 2003 Statut Membre Dernière intervention 23 décembre 2008 24
2 avril 2005 à 19:17
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Const WM_SYSCOMMAND = &H112
Const SC_MAXIMIZE = &HF030&




SendMessage nHwnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0





Manu
-------------------------------------------
Une question bien posée, c'est une chance de réponse bien adaptée.
0
jnbrunet Messages postés 258 Date d'inscription samedi 25 décembre 2004 Statut Membre Dernière intervention 13 novembre 2012
2 avril 2005 à 19:26
sa ne marche pas...l'appli que je veux maximiser est un jeu mis en window mode..

Jn
0
Rejoignez-nous