CRect cr;
GetClientRect( &cr );
if ( !m_wndSplitter.CreateStatic( this, 1, 2 ) )
{
MessageBox( "Error setting up splitter frames!", "Init Error!",
MB_OK | MB_ICONERROR );
return FALSE;
}
if ( !m_wndSplitter.CreateView( 0, 0, RUNTIME_CLASS(Hola),// dialog derived from CFrmView
CSize( 200, cr.Height() ), pContext ) )
{
MessageBox( "Error setting up splitter frames!", "Init Error!",
MB_OK | MB_ICONERROR );
return FALSE;
}
return TRUE;
5) run it and i get a window error with this msg
"Program: ............\Split.exe"
File:winsplit.cpp
Line:347
anyone know why i get this error?
thanks in advance
MFC CSplitterWnd class problems
Hi!! i follow the tutorial of Joe Houston http://www.gamedev.net/reference/articles/article1358.asp
and i have a problem when i compile my own src. i do the follow steps
1) create MFC project
2) create a dialog with the properties , style=child,border=none
3) doble click in the Dialog , and create a class derived from CFromView
4) goto MainFrm and put that code in CMainFrame::OnCreateClient( ..... )
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement