不是CChildFrame有滚动条,是CMDIView有滚动条。 你修改CMDIView::PreCreateWindow(CREATESTRUCT& cs)为:BOOL CMDIView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style = cs.style & ~WS_HSCROLL &WS_VSCROLL; return CView::PreCreateWindow(cs); }
你修改CMDIView::PreCreateWindow(CREATESTRUCT& cs)为:BOOL CMDIView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style = cs.style & ~WS_HSCROLL &WS_VSCROLL; return CView::PreCreateWindow(cs);
}