How to create a resizeable dialog box with scroll bars in Visual C++ (262954)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q262954 SUMMARY
This article describes how to create a resizeable dialog box with scroll bars. The process consists of four basic parts:
- In Resource Editor, select the Horizontal Scroll and Vertical Scroll styles in the properties of the dialog box.
- Select the Resizing Border style to make the dialog box resizeable.
- Override the WM_VSCROLL and WM_HSCROLL message handlers.
- Override the WM_SIZE message handler to set the scroll bar range if the size is reduced to smaller than the original size.
Modification Type: | Major | Last Reviewed: | 4/28/2005 |
---|
Keywords: | kbDlg kbhowto kbScrollBar KB262954 kbAudDeveloper |
---|
|