개발/윈도우
listview item height
1)List Control Properties 1. [Styles] -> [View] Report 설정. 2. Owner draw fixed = true. 2)WM_MEASUREITEM 추가 3)생성된 OnMeasureItem() 함수에서 if(nIDCtl == IDC_LIST) { lpMeasureItemStruct->itemHeight += 25; // - 연산 설정하면 높이가 줄어듭니다. } CDialog::OnMeasureItem(nIDCtl, lpMeasureItemStruct); 4)해당 OninitDialog()에서 m_ctrlList.ModifyStyle(LVS_OWNERDRAWFIXED, 0, 0); m_ctrlList.SetExtendedStyle(LVS_EX_FULLROWSELECT ..
2022. 8. 23. 12:35
최근 댓글