#CListBox sizing in VCiew
In order to have a view which supports a selectable list of database entries in
my document, I have created a list box within my CView class.
I would prefer to create a clistbox view but can't find any sample code for
that.
Anyway here is the problem:
In the oncreate of CMyView I do the following:
, I call CView::Create then MoveWindow to size my window. Then I
create CMyListBox with the CRect used to size my parent window.
CMyListBox style is WS_HSCROLL | WS_VSCROLL so the listbox can scroll
itself. Then I size CMyListBox with a MoveWindow.
The problem is that the listbox scrollbar is in the middle of my mainwindow.
I can't get it to move. It is always about 70 characters wide. No matter how I
try to size it.
Can anywone help?