Add wxApp::GetMainTopWindow() wrapper
This trivial function just allows to avoid checking if wxTheApp is not null before calling GetTopWindow() on it. Replace the existing "wxTheApp && wxTheApp->GetTopWindow()" calls with wxApp::GetMainTopWindow(). No real changes.
This commit is contained in:
@@ -393,7 +393,7 @@ void wxMessageDialog::AdjustButtonLabels()
|
||||
/* static */
|
||||
wxFont wxMessageDialog::GetMessageFont()
|
||||
{
|
||||
const wxWindow* win = wxTheApp ? wxTheApp->GetTopWindow() : NULL;
|
||||
const wxWindow* win = wxApp::GetMainTopWindow();
|
||||
const wxNativeFontInfo
|
||||
info(wxMSWImpl::GetNonClientMetrics(win).lfMessageFont, win);
|
||||
|
||||
|
Reference in New Issue
Block a user