I place a listview control on a dialog bar. I want the listview control sizing with the window. The codes are as following:

m_wndDlgBar.SetWindowPos(NULL, 3, 3, cx - 6, cy - 15, SWP_NOZORDER);
pListCtrl->SetWindowPos(NULL, 3, 3, cx - 30, cy - 30, SWP_NOZORDER);

But in this way, the scroll bar of the listview control is disappear. Why? How to do it properly?