Seems like the TreeView of the PropertySheet is a really pretty feature you can't use. Actually I'm trying to get this one working for the third time - this time with more success but still there are some glitches.
What I think is that in the TreeView you still have the original TabCtrl (beside the additional controls) but the buttons to select the pages are not visible (don't know if they are still there). If you switch to PropSheetLook_Tabs you'll find your 3D-view surrounding the Pages. You just have to get rid of it changing the window style of the TabCtrl. I did it in the OnInitDialog:
My problem now is the CTreeCtrl on the left side. I don't see any icons (even in the posted example application) and the control looks like win2k style and not like windows xp style I'm working with. As pages I have only list controls. The border of the list controls in windows xp is just a thin line (in a kind of blue) - the one of the tree not. When switching the windows theme to win2k both controls in the sheet have the same border style. Anyone an idea how to fix this and get the 'flat' looking border on the contained CTreeCtrl?Code:CMFCPropertySheet::OnInitDialog(); if(GetLook() == CMFCPropertySheet::PropSheetLook_Tree) { CTabCtrl *pTabCtrl= GetTabControl(); pTabCtrl->ModifyStyle(TCS_TABS | TCS_MULTILINE, TCS_BUTTONS); pTabCtrl->Invalidate();




Reply With Quote