I've got an MDI app with 1 main view and a bunch of others possible. In these other views, I am reading the contents of database files and presenting it to the user. When I create these views in VC++, I get most of the records to fit. The problem is when the user resizes the window, the list control stays the same size.
I have tried an OnSize function, but this causes my app to crash whenever it is encountered:
CFormView::OnSize(nType, cx, cy);
m_Table.SetWindowPos(&wndTop, 0, 0, rect.right-rect.left, rect.bottom-rect.top, SWP_SHOWWINDOW);
I'm not sure where this &wndTop comes from, but it causes an assert exception everytime.
Anyone have any ideas? All I really want to do is have the list control increase in size with the window, since this is the only control in the view.