BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,
CCreateContext* pContext)
{
//return m_wndSplitter.Create(this,
// 2, 2, // TODO: adjust the number of rows, columns
// CSize(10, 10), // TODO: adjust the minimum pane size
// pContext);
if ( !m_wndSplitter.CreateStatic(this, 2, 1) )
{
return FALSE ;
}
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(scrTop), CSize(0, 50), pContext);
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CscrViewView), CSize(0, 0), pContext);
m_wndSplitter.SetRowInfo(0, 30, 30);
return true;
}
CCreateContext* pContext)
{
//return m_wndSplitter.Create(this,
// 2, 2, // TODO: adjust the number of rows, columns
// CSize(10, 10), // TODO: adjust the minimum pane size
// pContext);
if ( !m_wndSplitter.CreateStatic(this, 2, 1) )
{
return FALSE ;
}
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(scrTop), CSize(0, 50), pContext);
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CscrViewView), CSize(0, 0), pContext);
m_wndSplitter.SetRowInfo(0, 30, 30);
return true;
}
'Windows > MFC' 카테고리의 다른 글
CScrollView를 분할윈도우로 붙였더니 휠로 스크롤 되지않습니다 (0) | 2013.10.02 |
---|---|
scroll 시 깜박임... 문제 처리 (0) | 2013.10.02 |
splitter 분할 이후 처리 (0) | 2013.10.02 |
CComPort (0) | 2013.10.02 |
LAYERD WINDOW, 투명윈도우 (0) | 2013.10.02 |