Use DPI Aware wxGetSystemMetrics
If no wxWindow is known, use wxTheApp->GetTopWindow(). Also use a wxWindow for all wxSystemSettings::GetMetric calls.
This commit is contained in:
@@ -58,9 +58,9 @@ public:
|
||||
{
|
||||
int w = GetSize().x;
|
||||
#ifdef __WXMSW__
|
||||
w -= wxSystemSettings::GetMetric(wxSYS_VSCROLL_X) + 6;
|
||||
w -= wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, this) + 6;
|
||||
#else
|
||||
w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
||||
w -= 2*wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, this);
|
||||
#endif
|
||||
if (w < 0) w = 0;
|
||||
SetColumnWidth(0, w);
|
||||
|
||||
Reference in New Issue
Block a user