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 !
Version imprimable
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:
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.
:D
Merci pour la méthode.Citation:
Envoyé par nicolashilaire
Par contre, cet appel intervient au niveau de quelle méthode ? OnCreate ? OnInit ? une autre ?
donc pas dans OnCreateCitation:
Envoyé par nicolashilaire
Slt
Code:
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 !Citation:
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.
:D