Update comment in wxRendererMSW::GetCheckBoxSize related to DPI
This commit is contained in:
@@ -550,8 +550,8 @@ wxRendererMSW::DrawTitleBarBitmap(wxWindow *win,
|
|||||||
|
|
||||||
wxSize wxRendererMSW::GetCheckBoxSize(wxWindow* win)
|
wxSize wxRendererMSW::GetCheckBoxSize(wxWindow* win)
|
||||||
{
|
{
|
||||||
// Even though we don't use the window in this implementation, still check
|
// We must have a valid window in order to return the size which is correct
|
||||||
// that it's valid to avoid surprises when using themes.
|
// for the display this window is on.
|
||||||
wxCHECK_MSG( win, wxSize(0, 0), "Must have a valid window" );
|
wxCHECK_MSG( win, wxSize(0, 0), "Must have a valid window" );
|
||||||
|
|
||||||
return wxSize(wxGetSystemMetrics(SM_CXMENUCHECK, win),
|
return wxSize(wxGetSystemMetrics(SM_CXMENUCHECK, win),
|
||||||
|
Reference in New Issue
Block a user