Bonjour

Je cherche a couper en deux une fenetre dans une MDI , j'ai ecrit la fonction suivante dans la classe MainFrame:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) 
{
	// TODO: Add your specialized code here and/or call the base class
 
	if (!m_wndSplitter.CreateStatic(this, 1, 2))
		return FALSE;
 
	if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CTest2View), CSize(100, 100), pContext) ||
		!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CEssaieView), CSize(100, 100), pContext))
	{
		m_wndSplitter.DestroyWindow();
		return FALSE;
	}
 
	return CMDIFrameWnd::OnCreateClient(lpcs, pContext);
}
Ca split bien la fenetre mais dans un meme temps ca la maximise et j'aimerai savoir comment je pourrais eviter ça

Merci d'avance

SBP