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:
@@ -625,7 +625,7 @@ wxSize wxListBox::DoGetBestClientSize() const
|
||||
wListbox += 3*GetCharWidth();
|
||||
|
||||
// add room for the scrollbar
|
||||
wListbox += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
||||
wListbox += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, m_parent);
|
||||
|
||||
// don't make the listbox too tall (limit height to 10 items) but don't
|
||||
// make it too small neither
|
||||
|
Reference in New Issue
Block a user