Bonjour
Je souhaite spécifier la taille de ma fenètre lorsque mon appli se lance.
Si vous savez quelle méthode appeller et où l'appeller, merci de laisser un post !
Bonjour
Je souhaite spécifier la taille de ma fenètre lorsque mon appli se lance.
Si vous savez quelle méthode appeller et où l'appeller, merci de laisser un post !
Salut, après sa création :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 SetWindowPos The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. BOOL SetWindowPos( HWND hWnd, // handle to window HWND hWndInsertAfter, // placement-order handle int X, // horizontal position int Y, // vertical position int cx, // width int cy, // height UINT uFlags // window-positioning options );
voir post it sur la faq:
http://www.developpez.net/forums/vie...095234#1095234
le traitement est identique.
Merci pour la méthode.Envoyé par nicolashilaire
Par contre, cet appel intervient au niveau de quelle méthode ? OnCreate ? OnInit ? une autre ?
donc pas dans OnCreateEnvoyé par nicolashilaire
Slt
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if( !CFrameWnd::PreCreateWindow(cs) ) return FALSE; // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.cx = 640; cs.cy = 480 return TRUE; }
nickel ça marche bien !Envoyé par LDDL
Pour spécifier le contenu d'une Liste Box, je fais ça au même endroit ?
non ,
dans la fonction OninitialUpdate de la view.
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager