Sign in to follow this  
juglarx

MFC CSplitterWnd class problems

Recommended Posts

juglarx    122
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( ..... ) [CODE] 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; [/CODE] 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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this