[MFC] List Control Report 사용하기
int colwidths[] = { 7, 12, 7, 7, 7, 7, 7, 9, }; TCHAR* lpszHeaders[] = { _T("ID"), _T("Position"), _T("X"), _T("Y"), _T("Z"), _T("Rx"), _T("Ry"), _T("Rz")}; CRect rect; m_lstTest.GetWindowRect(&rect); m_lstTest.ModifyStyle(0, LVS_REPORT); int w = rect.Width() - 21; int total_cx = 0; LV_COLUMN lvcolumn; memset(&lvcolumn, 0, sizeof(lvcolumn)); // add columns for (int i = 0; i < _countof(colwidths)..
더보기