Re: SplitterWnd problem
- From: "Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp>
- Date: Tue, 13 Sep 2005 20:21:26 -0500
Mark F. wrote:
I have an SDI app with a CScrollView splitter. The top pane is
swapped
with a CListView to display files. The bottom pane displays images.
The
problem is that when the bottom pane is finished the listview is corrupted. How can I fix this.
Thanks.
Thanks for the reply. That won't work. I think the problem is the way that the view is drawn (OnDraw). Since the CScrollView is split and uses the same document, when the bottom pane is drawn to show the image the top pane is destroyed. Also the views are never switched once created in the MainFrame class.
I don't know what's wrong, but your description of the windows seems all mixed up. The splitter splits the mainframe client area into two panes. Each pane contains a view. In your case, the CScrollView should only occupy the bottom pane. Its painting should have no effect on the painting of the top pane's view. In other words, the splitter does not, and is not expected to, split the CScrollView. If your CScrollView is painting the other pane then you did not create it properly. You can use the Spy++ tool to find out whether it is bigger than the bottom pane (it should not be).
-- Scott McPhillips [VC++ MVP]
.
- References:
- SplitterWnd problem
- From: Mark F.
- Re: SplitterWnd problem
- From: Tom Serface
- Re: SplitterWnd problem
- From: Mark F.
- SplitterWnd problem
- Prev by Date: Re: SplitterWnd problem
- Next by Date: about escape sequence in RC file
- Previous by thread: Re: SplitterWnd problem
- Next by thread: RichEdit 2.0 and RTF tables doesn't work well
- Index(es):
Relevant Pages
|