Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 18: Progress-Based Controls


cs.style |= WS_VSCROLL | WS_HSCROLL;

return CView::PreCreateWindow(cs);
}

If you are creating a dialog box and you want to equip it with a vertical scroll bar, at
design time, set its Vertical Scroll property to True:

To equip the dialog box with only a horizontal scroll bar, set its Horizontal Scroll
property to True. In the same way, to provide both scroll bars to a dialog box, set both
properties to True:
Free download pdf