]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/filedlg.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / msw / filedlg.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
2b5f62a0 2// Name: wx/msw/filedlg.h
2bda0e17
KB
3// Purpose: wxFileDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
bbcdf8bc 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
bbcdf8bc
JS
11#ifndef _WX_FILEDLG_H_
12#define _WX_FILEDLG_H_
2bda0e17 13
f74172ab
VZ
14//-------------------------------------------------------------------------
15// wxFileDialog
16//-------------------------------------------------------------------------
2bda0e17 17
53a2db12 18class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
2bda0e17 19{
2bda0e17 20public:
2b5f62a0
VZ
21 wxFileDialog(wxWindow *parent,
22 const wxString& message = wxFileSelectorPromptStr,
23 const wxString& defaultDir = wxEmptyString,
24 const wxString& defaultFile = wxEmptyString,
25 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
ff3e84ff
VZ
26 long style = wxFD_DEFAULT_STYLE,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& sz = wxDefaultSize,
29 const wxString& name = wxFileDialogNameStr);
2bda0e17 30
f74172ab 31 virtual void GetPaths(wxArrayString& paths) const;
89654c9a 32 virtual void GetFilenames(wxArrayString& files) const;
6fa6d659
VZ
33#ifndef __WXWINCE__
34 virtual bool SupportsExtraControl() const { return true; }
6fa6d659 35 void MSWOnInitDialogHook(WXHWND hwnd);
d6dae1b4 36#endif // __WXWINCE__
c61f4f6d 37
2b5f62a0 38 virtual int ShowModal();
ba681060 39
0a7b0229
VZ
40 // wxMSW-specific implementation from now on
41 // -----------------------------------------
42
43 // called from the hook procedure on CDN_INITDONE reception
44 virtual void MSWOnInitDone(WXHWND hDlg);
45
926df8a1
VZ
46 // called from the hook procedure on CDN_SELCHANGE.
47 void MSWOnSelChange(WXHWND hDlg);
48
0b11099d 49protected:
dcbbda54 50
9b141468 51#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
0b11099d 52 virtual void DoMoveWindow(int x, int y, int width, int height);
0a7b0229 53 virtual void DoCentre(int dir);
0b11099d
VZ
54 virtual void DoGetSize( int *width, int *height ) const;
55 virtual void DoGetPosition( int *x, int *y ) const;
9b141468 56#endif // !(__SMARTPHONE__ && __WXWINCE__)
0b11099d 57
f74172ab 58private:
c61f4f6d 59 wxArrayString m_fileNames;
0a7b0229
VZ
60
61 // remember if our SetPosition() or Centre() (which requires special
62 // treatment) was called
0b11099d 63 bool m_bMovedWindow;
0a7b0229 64 int m_centreDir; // nothing to do if 0
c61f4f6d 65
c61f4f6d 66 DECLARE_DYNAMIC_CLASS(wxFileDialog)
c0c133e1 67 wxDECLARE_NO_COPY_CLASS(wxFileDialog);
2bda0e17
KB
68};
69
b600ed13 70#endif // _WX_FILEDLG_H_
c61f4f6d 71