Use DPI Aware wxSystemParametersInfo
Require a wxWindow when requesting GetNonClientMetrics. If no wxWindow is known, use wxTheApp->GetTopWindow().
This commit is contained in:
@@ -363,7 +363,7 @@ void MenuDrawData::Init()
|
||||
else
|
||||
#endif // wxUSE_UXTHEME
|
||||
{
|
||||
const NONCLIENTMETRICS& metrics = wxMSWImpl::GetNonClientMetrics();
|
||||
const NONCLIENTMETRICS& metrics = wxMSWImpl::GetNonClientMetrics(window);
|
||||
|
||||
CheckMargin.cxLeftWidth =
|
||||
CheckMargin.cxRightWidth = wxGetSystemMetrics(SM_CXEDGE, window);
|
||||
|
||||
Reference in New Issue
Block a user