在VC中分割窗口CSplitterWnd怎么把滚动条去掉
1个回答
展开全部
在CScrollView的子类中响应WM_CREATE,在OnCreate中添加:
int CPrintMapView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMainView::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
InitializeFlatSB(this->m_hWnd);
FlatSB_EnableScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH);
// FlatSB_ShowScrollBar(this->m_hWnd, SB_BOTH, FALSE);
return 0;
}
int CPrintMapView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMainView::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
InitializeFlatSB(this->m_hWnd);
FlatSB_EnableScrollBar(this->m_hWnd, SB_BOTH, ESB_DISABLE_BOTH);
// FlatSB_ShowScrollBar(this->m_hWnd, SB_BOTH, FALSE);
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询