How to resize CPropertyPages at run time in Visual C++ (143291)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q143291 Note Microsoft Visual C++ .NET (2002) supports both the managed code
model that is provided by the Microsoft .NET Framework and the unmanaged native
Microsoft Windows code model. The information in this article applies only to
unmanaged Visual C++ code. SUMMARY To resize CPropertyPages in a CPropertySheet at run time:
- Derive a class from CPropertySheet and override
OnInitDialog().
- In OnInitDialog(), resize the CPropertySheet, CTabCtrl, and
CPropertyPage(s) by using MoveWindow() or SetWindowPos().
- Save the size and position of the CPropertyPage.
- Handle TCN_SELCHANGE in the CPropertySheet, and resize the
page.
- Handle ID_APPLY_NOW in the CPropertySheet, and resize the
page.
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbinfo kbcode kbDlg kbhowto kbPropSheet KbUIDesign KB143291 kbAudDeveloper |
---|
|