Microsoft KB Archive/259792

{|
 * width="100%"|

BUG: CPropertySheet::EnableStackedTabs Does Not Work Correctly

 * }

Q259792

-

The information in this article applies to:


 * Microsoft Windows CE Platform SDK for Handheld PC, versions 2.0, 3.0
 * Microsoft Windows CE Platform SDK for Palm-size PC, versions 1.0, 1.2
 * Microsoft Windows CE Platform SDK for Pocket PC

-

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);

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words:

Keywords : kbdocerr kbMFC kbDSupport kbGrpDSETK

Issue type : kbbug

Technology : kbAudDeveloper kbPocketSearch kbSDKSearch kbWinCESDKSearch kbWinCESearch kbWinCESDK200HPC kbWinCESDK300HPC kbWinCESDK100PalmsizePC kbWinCESDK120PalmsizePC kbWinCESDKPalmsizePC