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:
@@ -2718,7 +2718,8 @@ PRectangle wxSTCListBox::GetDesiredRect() const
|
||||
|
||||
// Add space for a scrollbar if needed.
|
||||
if ( count > desiredVisibleRows )
|
||||
maxw += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
||||
maxw += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X,
|
||||
const_cast<wxWindow*>(wxDynamicCast(this, wxWindow)));
|
||||
|
||||
// Add borders.
|
||||
maxw += 2 * m_borderSize;
|
||||
|
Reference in New Issue
Block a user