Merge branch 'pm-dpi-aware-1-systemmetric' of https://github.com/MaartenBent/wxWidgets
Make GetSystemMetrics() and wxSystemParametersInfo DPI-aware in wxMSW. See https://github.com/wxWidgets/wxWidgets/pull/1407
This commit is contained in:
@@ -2781,7 +2781,7 @@ 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, this);
|
||||
|
||||
// Add borders.
|
||||
maxw += 2 * m_borderSize;
|
||||
|
Reference in New Issue
Block a user