Link to home
Start Free TrialLog in
Avatar of talgraf1
talgraf1

asked on

CTabCtrl in CListView with CSplitterWnd

Hi, I have a CSplitterWnd, which is associated with a CListView. Now I would like to have a CTabCtrl so I could change the CListView to show another list. Is this even possible or should I use CPropertySheet?
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi talgraf1,

I would suggest to use a CFormView with the CSplitterWnd - in the CFormView you can use a CTabCtrl. Maybe to do so you need to change your CListView and implement it as a CListCtrl, either as part of the CFormView or within a child dialog you load into the CFormView.

The reason for this more complex solution is that CSplitterWnd force its panes to be CView-derived, therefore you can't use CTabCtrl or CPropertySheet as direct child. And I don't think it's possible to use a CListView as child of a CFormView, therefore I suggest to implement it as CListCtrl.

Hope that helps,

ZOPPO
The following project implemets your requirements:

"Tab controls and Splitters - mixing together" at
http://www.codeproject.com/KB/tabs/igorsplitpane.aspx
Avatar of talgraf1
talgraf1

ASKER

Hi Zoppo,

Do you mean that I should make the CPropertySheets as child of the CFormView and the CPropertySheets should contain CListViews. Or is it easier if I placed CTabCtrl in the CFormView and made the list just change when the tabs change?
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just what I asked for :)