From 3709456403aecdfda30023f06516e3be4f3c8d94 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 28 Jun 2002 17:47:54 +0000 Subject: [PATCH] Return more items in wxListCtrl::GetColumn. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; }