Hi,
What is the proper method to use way to set the number of columns in a list control. I inserted two columns and would like them to be the same width in the list control.
This is what I have so far. Obviously I want to find the width of the list control and divide it by the number of columns.
void CBirthView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
CString FirstName = "First Name";
CString LastName = "Last Name";
m_lcBirth.InsertColumn
( 0,FirstName,LVCFMT_CENTER,100 ,-1);
m_lcBirth.InsertColumn
(1,LastName,LVCFMT_CENTER, 100,-1);
}
MPSoutine