unified wxFRAME_EX_CONTEXTHELP and wxDIALOG_EX_CONTEXTHELP in a single wxWS_EX_CONTEXTHELP and changed its value to avoid conflict with wxWS_EX_TRANSIENT (this resulted in all progress dialogs having useless context help button in their title bar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,8 +97,7 @@ bool wxTopLevelWindow::Create(wxWindow *parent,
|
||||
wxSYSTEM_MENU | wxRESIZE_BORDER | wxFRAME_TOOL_WINDOW |
|
||||
wxRESIZE_BORDER);
|
||||
style |= wxSIMPLE_BORDER;
|
||||
SetExtraStyle(exstyleOrig &
|
||||
~(wxFRAME_EX_CONTEXTHELP | wxDIALOG_EX_CONTEXTHELP));
|
||||
SetExtraStyle(exstyleOrig & ~wxWS_EX_CONTEXTHELP);
|
||||
}
|
||||
|
||||
if ( !wxTopLevelWindowNative::Create(parent, id, title, pos,
|
||||
@@ -154,7 +153,7 @@ long wxTopLevelWindow::GetDecorationsStyle() const
|
||||
style |= wxTOPLEVEL_BUTTON_MAXIMIZE;
|
||||
}
|
||||
#if wxUSE_HELP
|
||||
if ( m_exStyle & (wxFRAME_EX_CONTEXTHELP | wxDIALOG_EX_CONTEXTHELP))
|
||||
if ( m_exStyle & wxWS_EX_CONTEXTHELP)
|
||||
style |= wxTOPLEVEL_BUTTON_HELP;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user