1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/filedlg.h
3 // Purpose: wxFileDialog class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_FILEDLG_H_
12 #define _WX_FILEDLG_H_
14 //-------------------------------------------------------------------------
16 //-------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxFileDialog
: public wxFileDialogBase
21 wxFileDialog(wxWindow
*parent
,
22 const wxString
& message
= wxFileSelectorPromptStr
,
23 const wxString
& defaultDir
= wxEmptyString
,
24 const wxString
& defaultFile
= wxEmptyString
,
25 const wxString
& wildCard
= wxFileSelectorDefaultWildcardStr
,
26 long style
= wxFD_DEFAULT_STYLE
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& sz
= wxDefaultSize
,
29 const wxString
& name
= wxFileDialogNameStr
);
31 virtual void GetPaths(wxArrayString
& paths
) const;
32 virtual void GetFilenames(wxArrayString
& files
) const;
34 virtual bool SupportsExtraControl() const { return true; }
35 void MSWOnInitDialogHook(WXHWND hwnd
);
38 virtual int ShowModal();
40 // wxMSW-specific implementation from now on
41 // -----------------------------------------
43 // called from the hook procedure on CDN_INITDONE reception
44 virtual void MSWOnInitDone(WXHWND hDlg
);
46 // called from the hook procedure on CDN_SELCHANGE.
47 void MSWOnSelChange(WXHWND hDlg
);
51 #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
52 virtual void DoMoveWindow(int x
, int y
, int width
, int height
);
53 virtual void DoCentre(int dir
);
54 virtual void DoGetSize( int *width
, int *height
) const;
55 virtual void DoGetPosition( int *x
, int *y
) const;
56 #endif // !(__SMARTPHONE__ && __WXWINCE__)
59 wxArrayString m_fileNames
;
61 // remember if our SetPosition() or Centre() (which requires special
62 // treatment) was called
64 int m_centreDir
; // nothing to do if 0
66 DECLARE_DYNAMIC_CLASS(wxFileDialog
)
67 wxDECLARE_NO_COPY_CLASS(wxFileDialog
);
70 #endif // _WX_FILEDLG_H_