don't reserve space in the header for the column image if there is none (patch 1225522)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-07-28 23:01:36 +00:00
parent 978d3d3647
commit 73bb565476
2 changed files with 3 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ wxMSW:
- Fixed wxSlider::GetSelEnd() (Atilim Cetin). - Fixed wxSlider::GetSelEnd() (Atilim Cetin).
- Fixed accelerators of menu items added to already attached submenus. - Fixed accelerators of menu items added to already attached submenus.
- Position of wxEVT_MOUSEWHEEL events is now in client, not screen, coordinates. - Position of wxEVT_MOUSEWHEEL events is now in client, not screen, coordinates.
- Handle absence of wxListCtrl column image better (Zbigniew Zag<61>rski)
wxWinCE: wxWinCE:

View File

@@ -2828,6 +2828,7 @@ static void wxConvertToMSWListCol(int WXUNUSED(col), const wxListItem& item,
// //
// we don't use LVCFMT_COL_HAS_IMAGES because it doesn't seem to // we don't use LVCFMT_COL_HAS_IMAGES because it doesn't seem to
// make any difference in my tests -- but maybe we should? // make any difference in my tests -- but maybe we should?
if ( item.m_image != -1 )
lvCol.fmt |= LVCFMT_BITMAP_ON_RIGHT | LVCFMT_IMAGE; lvCol.fmt |= LVCFMT_BITMAP_ON_RIGHT | LVCFMT_IMAGE;
lvCol.iImage = item.m_image; lvCol.iImage = item.m_image;