From: Robin Dunn Date: Fri, 28 Jun 2002 17:47:54 +0000 (+0000) Subject: Return more items in wxListCtrl::GetColumn. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3709456403aecdfda30023f06516e3be4f3c8d94?hp=9f79d14b31cf3e85ef74fb51782c6f3bbd2eeb1f Return more items in wxListCtrl::GetColumn. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index ecc6895b54..93187c0e42 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -579,6 +579,8 @@ bool wxListCtrl::GetColumn(int col, wxListItem& item) const LV_COLUMN lvCol; wxZeroMemory(lvCol); + lvCol.mask = LVCF_WIDTH; + if ( item.m_mask & wxLIST_MASK_TEXT ) { lvCol.mask |= LVCF_TEXT; @@ -586,6 +588,16 @@ bool wxListCtrl::GetColumn(int col, wxListItem& item) const lvCol.cchTextMax = 512; } + if ( item.m_mask & wxLIST_MASK_FORMAT ) + { + lvCol.mask |= LVCF_FMT; + } + + if ( item.m_mask & wxLIST_MASK_IMAGE ) + { + lvCol.mask |= LVCF_IMAGE; + } + bool success = ListView_GetColumn(GetHwnd(), col, & lvCol) != 0; // item.m_subItem = lvCol.iSubItem; @@ -607,6 +619,11 @@ bool wxListCtrl::GetColumn(int col, wxListItem& item) const item.m_format = wxLIST_FORMAT_CENTRE; } + if ( item.m_mask & wxLIST_MASK_IMAGE ) + { + item.m_image = lvCol.iImage; + } + return success; }