Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Basic MFC question Pin
Rob Caldecott25-Nov-02 5:58
Rob Caldecott25-Nov-02 5:58 
GeneralRe: Basic MFC question Pin
Roman Fadeyev25-Nov-02 6:04
Roman Fadeyev25-Nov-02 6:04 
GeneralRe: Basic MFC question Pin
Stephane Rodriguez.25-Nov-02 6:39
Stephane Rodriguez.25-Nov-02 6:39 
GeneralRe: Basic MFC question Pin
Jeff Patterson26-Nov-02 3:26
Jeff Patterson26-Nov-02 3:26 
GeneralCFileDialog problem under win 98 Pin
lbc25-Nov-02 5:50
lbc25-Nov-02 5:50 
GeneralRe: CFileDialog problem under win 98 Pin
Rob Caldecott25-Nov-02 5:57
Rob Caldecott25-Nov-02 5:57 
GeneralRe: CFileDialog problem under win 98 Pin
lbc25-Nov-02 22:06
lbc25-Nov-02 22:06 
GeneralMDI Splitter problems Pin
Bjornarsen25-Nov-02 5:43
Bjornarsen25-Nov-02 5:43 
Hi, i am making a MDI application and i am trying to add some splitters to it.
I want two splitters to divide the Frame/MDICLIENT window into tree panes/views and i want all views to show the same view-class.

Below is a clip of my code where i make the splitters :

if (!m_wndSplitter.CreateStatic(this,2,1))
{
TRACE(_T("failed to create the splitter"));
return FALSE;
}
if (!m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(CAPecc2View),CSize(200, 200), pContext))
{
TRACE(_T("failed to create view in second pane"));
return FALSE;
}
// add the second splitter pane - which is a nested splitter with 2 rows
if (!m_wndSplitter2.CreateStatic(&m_wndSplitter,1,2))
{
TRACE0("Failed to create nested splitter\n");
return FALSE;
}
if (!m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CAPecc2View),CSize(200, 200), pContext))
{
TRACE(_T("failed to create view in second pane"));
return FALSE;
}
if (!m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CAPecc2View),CSize(200, 200), pContext))
{
TRACE(_T("failed to create view in second pane"));
return FALSE;
}

the problem i get is an assert in the following code :
CAPecc2Doc* CAPecc2View::GetDocument() const // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CAPecc2Doc))); //NB, HERE is the problem???
return (CAPecc2Doc*)m_pDocument;
}

I did the same for a SDI application and i worked fine there, so i don't have a clue why it doesen't work for this application.

I hope there is someone who can help me, cause i am really stucked Frown | :-( .


best regards

Bjørnar Skogseth
GeneralRe: MDI Splitter problems Pin
dima_t25-Nov-02 18:02
dima_t25-Nov-02 18:02 
GeneralRe: Sockets and Threads Pin
georgiek5025-Nov-02 5:34
georgiek5025-Nov-02 5:34 
GeneralProblem with CDialogBar e CTreeCtrl Pin
Anthiny B.25-Nov-02 5:06
sussAnthiny B.25-Nov-02 5:06 
GeneralRe: Problem with CDialogBar e CTreeCtrl Pin
Roman Fadeyev25-Nov-02 5:17
Roman Fadeyev25-Nov-02 5:17 
GeneralRe: Problem with CDialogBar e CTreeCtrl Pin
Anonymous25-Nov-02 5:32
Anonymous25-Nov-02 5:32 
GeneralRe: Problem with CDialogBar e CTreeCtrl Pin
Roman Fadeyev25-Nov-02 5:55
Roman Fadeyev25-Nov-02 5:55 
GeneralGetting Char Index Pin
brianwelsch25-Nov-02 4:22
brianwelsch25-Nov-02 4:22 
GeneralRe: Getting Char Index Pin
Roman Fadeyev25-Nov-02 5:00
Roman Fadeyev25-Nov-02 5:00 
GeneralSockets and Threads Pin
ballyduff25-Nov-02 4:14
ballyduff25-Nov-02 4:14 
GeneralRe: Sockets and Threads Pin
valikac25-Nov-02 9:02
valikac25-Nov-02 9:02 
GeneralText editor Pin
Rage25-Nov-02 4:04
professionalRage25-Nov-02 4:04 
GeneralRe: Text editor Pin
brianwelsch25-Nov-02 4:27
brianwelsch25-Nov-02 4:27 
GeneralRe: Text editor Pin
Jeff Patterson25-Nov-02 7:14
Jeff Patterson25-Nov-02 7:14 
GeneralRe: Text editor Pin
Rage25-Nov-02 20:26
professionalRage25-Nov-02 20:26 
GeneralChanging Colour in CDocument Pin
E325-Nov-02 3:53
E325-Nov-02 3:53 
GeneralRe: Changing Colour in CDocument Pin
Roman Fadeyev25-Nov-02 4:07
Roman Fadeyev25-Nov-02 4:07 
GeneralDocument View Pin
wimel26-Nov-02 2:49
wimel26-Nov-02 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.