Rose Mary
April 13th, 1999, 08:43 AM
Experts:
My application needs a horizontal splitter window with two views (view A and view B). These two views have different style and content. View A will
show some messages by edit box and combo box, so I make View A derived from CFormView. View B will display a bunch of messages and data
in the loop line by line. I am thinking to derive it from CScrollView because I only want to display messages not edit them and I need the scroll bar
when message is over 1 screen.
My questions are: (1). Is that a good choice to make view B derived from CScrollView. Is there any choice better than this to implement view B's
functionality ? (2). I tried a simple example to display a bunch information on a CScrollView (by TextOut()). But the Scroll Bar didn't show on the right side. How should I do to bring up the scroll bar? (3). How to implement the splitter window who has two different views with different content ?
My application needs a horizontal splitter window with two views (view A and view B). These two views have different style and content. View A will
show some messages by edit box and combo box, so I make View A derived from CFormView. View B will display a bunch of messages and data
in the loop line by line. I am thinking to derive it from CScrollView because I only want to display messages not edit them and I need the scroll bar
when message is over 1 screen.
My questions are: (1). Is that a good choice to make view B derived from CScrollView. Is there any choice better than this to implement view B's
functionality ? (2). I tried a simple example to display a bunch information on a CScrollView (by TextOut()). But the Scroll Bar didn't show on the right side. How should I do to bring up the scroll bar? (3). How to implement the splitter window who has two different views with different content ?