14#ifndef _WIN_FILEDIALOGPRIVATE_H_
15#define _WIN_FILEDIALOGPRIVATE_H_
19#include <wx/modalhook.h>
30 const wxString& message = wxFileSelectorPromptStr,
31 const wxString& defaultDir = wxEmptyString,
32 const wxString& defaultFile = wxEmptyString,
33 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
34 long style = wxFD_DEFAULT_STYLE,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& sz = wxDefaultSize,
37 const wxString&
name = wxFileDialogNameStr);
39 virtual void GetPaths(wxArrayString& paths)
const;
50#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
51 virtual void DoMoveWindow(
int x,
int y,
int width,
int height);
52 virtual void DoCentre(
int dir);
53 virtual void DoGetSize(
int *width,
int *height)
const;
54 virtual void DoGetPosition(
int *x,
int *y)
const;
61 void FilterFiles(HWND hwnd,
bool refresh);
62 void ParseFilter(
int index);
65 static UINT_PTR APIENTRY ParentHook(HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam);
66 virtual UINT_PTR MSWParentHook(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn);
69 virtual void MSWOnSize(HWND hwnd, LPOPENFILENAME pOfn);
70 virtual void MSWOnGetMinMaxInfo(HWND hwnd, LPOPENFILENAME pOfn, LPMINMAXINFO pMmi);
73 static UINT_PTR APIENTRY DialogHook(HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam);
74 virtual UINT_PTR MSWDialogHook(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam, OPENFILENAME *pOfn);
77 virtual void MSWOnInitDialog(HWND hwnd, LPOPENFILENAME pOfn);
78 virtual void MSWOnDestroy(HWND hwnd, LPOPENFILENAME pOfn);
79 virtual void MSWOnInitDone(HWND hwnd, LPOPENFILENAME pOfn);
80 virtual void MSWOnFolderChange(HWND hwnd, LPOPENFILENAME pOfn);
81 virtual void MSWOnSelChange(HWND hwnd, LPOPENFILENAME pOfn);
82 virtual void MSWOnTypeChange(HWND hwnd, LPOPENFILENAME pOfn);
85 wxArrayString m_fileNames;
106 void Init(wxWindow *root, HWND hwnd);
109 int Enter(wxDialog *dialog);
110 void Exit(wxDialog *dialog);
111 bool IsChild(
const wxDialog *dialog)
const;
Dialog used to present platform specific "Save As" dialog with custom controls.
virtual void SetFileExtension(const wxString &extension)
wxArrayString m_FilterGroups
wxString GetFullPath(HWND hwnd, int itm)
virtual void GetPaths(wxArrayString &paths) const
virtual void GetFilenames(wxArrayString &files) const
FileDialog(wxWindow *parent, const wxString &message=wxFileSelectorPromptStr, const wxString &defaultDir=wxEmptyString, const wxString &defaultFile=wxEmptyString, const wxString &wildCard=wxFileSelectorDefaultWildcardStr, long style=wxFD_DEFAULT_STYLE, const wxPoint &pos=wxDefaultPosition, const wxSize &sz=wxDefaultSize, const wxString &name=wxFileDialogNameStr)
ProjectFileIOExtensionRegistry::Extension extension