Add wxHD_BITMAP_ON_RIGHT style to wxHeaderCtrl

Implement this style for wxMSW to allow putting the column images on the
right side, for consistency with wxMSW wxListCtrl.

See #13350.
This commit is contained in:
Vadim Zeitlin
2018-02-03 15:05:46 +01:00
parent 0b1acae0a7
commit fd73ae1623
4 changed files with 15 additions and 0 deletions

View File

@@ -314,6 +314,9 @@ void wxHeaderCtrl::DoInsertItem(const wxHeaderColumn& col, unsigned int idx)
{
hdi.mask |= HDI_IMAGE;
if ( HasFlag(wxHD_BITMAP_ON_RIGHT) )
hdi.fmt |= HDF_BITMAP_ON_RIGHT;
if ( bmp.IsOk() )
{
const int bmpWidth = bmp.GetWidth(),