The information in this article applies to:
SYMPTOMS
If you create a class derived from CPropertySheet and use ClassWizard to
add a handler for OnInitDialog(), the TODO comment will be added before the
call to CPropertySheet::OnInitDialog(). If you replace the comment with
calls to MoveWindow() or SetWindowPos() to resize the sheet, this will not
work. Also, GetWindowRect() or GetClientRect() will not return the correct
information if called before OnInitDialog().
CAUSECPropertySheet::OnInitDialog causes the CPropertySheet to resize. Therefore, any call to MoveWindow() or SetWindowPos() has no effect if it comes before CPropertySheet::OnInitDialog(). RESOLUTIONCall CPropertySheet::OnInitDialog() first, before resizing the sheet, as in the following code. Sample Code
STATUSThis behavior is by design. Additional query words: 4.00 Windows 95
Keywords : kbcode kbMFC KbUIDesign kbVC |
Last Reviewed: July 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |