BUG: CPropertySheet::EnableStackedTabs() Does Not Work Correctly (259792)
The information in this article applies to:
- Microsoft Windows CE Platform SDK for Handheld PC 2.0
- Microsoft Windows CE Platform SDK for Handheld PC 3.0
- Microsoft Windows CE Platform SDK for Palm-size PC 1.0
- Microsoft Windows CE Platform SDK for Palm-size PC 1.2
- Microsoft Windows CE Platform SDK for Pocket PC
This article was previously published under Q259792 SYMPTOMS
Calling the CPropertySheet::EnableStackedTabs function from the OnCreate message of a CPropertySheet implementation does not change the tab control to the multi-row style as indicated by the online documentation.
CAUSE
The following are causes: - CDialog windows do not receive WM_CREATE (OnCreate) messages.
- A bug in Microsoft Foundation Classes (MFC) prevents the new property sheet dialog box from adopting the TCS_MULTILINE style after this member has been called.
RESOLUTION
Implement code similar to the following in the property sheet's OnInitDialog method to manually change the style of the tab control that is used for the property sheet:
CWnd* pTabControl = GetDlgItem( AFX_IDC_TAB_CONTROL );
pTabControl->ModifyStyle(TCS_MULTILINE,TCS_MULTILINE);
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/27/2004 |
---|
Keywords: | kbbug kbdocerr kbpending KB259792 |
---|
|