【发布时间】:2016-02-27 06:35:42
【问题描述】:
我必须在 C++ 中将窗口拆分为多个部分?谁能建议我任何 API 或给我一些拆分窗口的提示?提前致谢。
【问题讨论】:
我必须在 C++ 中将窗口拆分为多个部分?谁能建议我任何 API 或给我一些拆分窗口的提示?提前致谢。
【问题讨论】:
在 SDI 的情况下:
class CMainFrame : public CFrameWnd
{
public:
CSplitterWnd m_wndSplitter; // add
}
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
if(!m_wndSplitter.CreateStatic(this, 1, 2))
return FALSE;
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CXXXView), CSize(10,10), pContext);
m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CYYYView), CSize(10,10), pContext);
}
【讨论】: