Add wxLIST_DEFAULT_COL_WIDTH constant
The same value of 80px was used in both the generic and MSW versions of wxListCtrl, so introduce a symbolic name for it and define it only once, similarly to how it's already done for wxDVC_DEFAULT_WIDTH and WXGRID_DEFAULT_COL_WIDTH. No real changes.
This commit is contained in:
@@ -2057,7 +2057,7 @@ long wxListCtrl::DoInsertColumn(long col, const wxListItem& item)
|
||||
// always give some width to the new column: this one is compatible
|
||||
// with the generic version
|
||||
lvCol.mask |= LVCF_WIDTH;
|
||||
lvCol.cx = 80;
|
||||
lvCol.cx = wxLIST_DEFAULT_COL_WIDTH;
|
||||
}
|
||||
|
||||
long n = ListView_InsertColumn(GetHwnd(), col, &lvCol);
|
||||
|
Reference in New Issue
Block a user