For days I am struggling to solve a drawing issue on CTabView derived. Might be simple to solve this, but I didn't make it yet, and I decided to put this here, hoping to get some help.
I even reproduce this into a test application in order to have clear image about this. (I attach test project below).
I have an MDI app, and in CChildFrame I have splitter just like this:
| | listview
| tree |
| |
| |
| |
In tree-view, regarding where is selected, I dynamically show another CTabView, and this CTabView has several CListViews, just like this:
| | listview
| tree |--------------------
| |
| | tabview
| |
When I change an specific item into tree-view, the tabbed view is showing up, and the first tab (which contain an CListView) is activated. The problem is that this CListView, is not drawing well (for isntance, it hasn't horizontal scrollbar) !!!
If I change manually some listview from CTabView, they are drawn well, even if I select back the first tabview.
Scenario:
I change an item in tree. CTabView is switching as visible, and the first tab is activated. This tab, having a CListView inside has NOT drawn well (no horizontal scrollbar).
I manually change another tab in tabview, the listview inside are drawn well.
I manually change the first tab, with listview inside. This time, the listview inside of had drawn well.
Could you cut a little time from yours and give a little help ? It would means a lot for me.
I come back immediately with what I have tried already.