Move the wxFD_... flags back into m_windowStyle

as requested. Add the list if flags, with which
    the wxFD_ flags have to cooperate into the
    header of wxFileDialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-27 08:45:22 +00:00
parent 44219ff04f
commit 45f4109c41
2 changed files with 15 additions and 6 deletions

View File

@@ -54,11 +54,11 @@ bool wxFileDialogBase::Create(wxWindow *parent,
m_wildCard = wildCard;
m_parent = parent;
m_fdStyle = style;
m_windowStyle = style;
m_filterIndex = 0;
if (!HasFdFlag(wxFD_OPEN) && !HasFdFlag(wxFD_SAVE))
m_fdStyle |= wxFD_OPEN; // wxFD_OPEN is the default
m_windowStyle |= wxFD_OPEN; // wxFD_OPEN is the default
// check that the styles are not contradictory
wxASSERT_MSG( !(HasFdFlag(wxFD_SAVE) && HasFdFlag(wxFD_OPEN)),