私の MFC プログラムでは、スプリッターを使用して 2 つのペインを作成しています。これらのペインの 1 つを再び半分に分割し、別のビューに配置したいのですが、誰かがその方法を教えてくれたり、コードの方向性を教えてくれませんか?
自分でコーディングしたいので、非常に基本的なものでない限り、カスタム派生クラスには興味がありません。
ありがとう!
のCMainFrame::OnCreateClient
// Create splitter with 2 rows and 1 col
m_wndSplitter.CreateStatic(this, 2, 1);
// Create a view in the top row
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CView1), CSize(100, 100), pContext);
// Create a 2 column splitter that will go in the bottom row of the first
m_wndSplitter2.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(1, 0));
// Create views for the bottom splitter
m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CView2), CSize(100, 100), pContext);
m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CView3), CSize(100, 100), pContext);
...
私は MFC の専門家ではありませんが、最初のスプリッターで作成したペインの 1 つにスプリッターを配置することはできませんか? 私たちがwinformで行う方法....