Splitter window problem
-
Hi All, --------------------- | | | | | | --------------------- | | | | | | --------------------- I need a splitter window (4 way) as shown above. I use the code m_wndSplitter.CreateStatic(this, 1, 2)); m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 0)); m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 1)); m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; But i got this --------------------- || | || | --------------------- || | || | --------------------- I know that m_wndSplitter.CreateStatic(this, 2, 2)); is possible for this 4 way splittering. But here wndSplitter1 & wndSplitter2 are the object of different splitter classes Help me..
-
Hi All, --------------------- | | | | | | --------------------- | | | | | | --------------------- I need a splitter window (4 way) as shown above. I use the code m_wndSplitter.CreateStatic(this, 1, 2)); m_wndSplitter1.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 0)); m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter1.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; m_wndSplitter2.CreateStatic(&m_wndSplitter,2,1,WS_CHILD |WS_VISIBLE, m_wndSplitter.IdFromRowCol (0, 1)); m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CLabel), CSize(250, 15), pContext) ; m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CLView), CSize(250, 500), pContext) ; But i got this --------------------- || | || | --------------------- || | || | --------------------- I know that m_wndSplitter.CreateStatic(this, 2, 2)); is possible for this 4 way splittering. But here wndSplitter1 & wndSplitter2 are the object of different splitter classes Help me..
You have to call
m_wndSplitter.CreateView
before calling.CreateStatic
on the other splitters even though you will never use those views.«_Superman_»
-
You have to call
m_wndSplitter.CreateView
before calling.CreateStatic
on the other splitters even though you will never use those views.«_Superman_»
Wow!! it works well.Thank u very much :-\