diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 9372afbd29..6645283603 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -550,8 +550,8 @@ wxRendererMSW::DrawTitleBarBitmap(wxWindow *win, wxSize wxRendererMSW::GetCheckBoxSize(wxWindow* win) { - // Even though we don't use the window in this implementation, still check - // that it's valid to avoid surprises when using themes. + // We must have a valid window in order to return the size which is correct + // for the display this window is on. wxCHECK_MSG( win, wxSize(0, 0), "Must have a valid window" ); return wxSize(wxGetSystemMetrics(SM_CXMENUCHECK, win),