[MFC] Maximisation automatique de la fenetre

Maximisation automatique de la fenetre [MFC] - C++ - Programmation

Marsh Posté le 11-08-2004 à 15:49:25    

Salut,
 
Est-ce que quelqu'un saurait comment lancer mon application avec la fenetre initialement maximisée?
 
Merci d'avance :bounce:    

Reply

Marsh Posté le 11-08-2004 à 15:49:25   

Reply

Marsh Posté le 11-08-2004 à 16:20:16    

ben dans la fonction d'initialisation tu appelles la méthode de maximisation (j'utilise pas les MFC donc je pourrais pas te donner les noms de fonctions, mais bon)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 11-08-2004 à 16:33:52    

oui ou un simple appel à l'API ShowWindow(); avec le paramètre qui va bien...

Reply

Marsh Posté le 11-08-2004 à 19:05:04    

oui en effet ca marche!
pour ce que ca interesse il s'agit donc de remplacer  
m_pMainWnd->ShowWindow(SW_SHOW); par
m_pMainWnd->ShowWindow(SW_MAXIMIZE);dans la fonction InitInstance() de l'application
 
merci à tous!

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed