TWR
T windows api WRapper
 All Classes Functions
NCFileDialog.h
1 #ifndef NCFileDialog_H
2 #define NCFileDialog_H
3 
4 class NCFileDialog {
5 private:
6  TCHAR gotFileName[_MAX_PATH];
7  BOOL m_OpenFileDialog;
8  const char *m_defExt;
9 public:
10  OPENFILENAME m_ofn;
11 
13  BOOL bOpenFileDialog,
14  const char *lpszDefExt = NULL,
15  const TCHAR *lpszFileName = NULL,
16  DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
17  const TCHAR *lpszFilter = NULL,
18  HWND pParentWnd = NULL,
19  DWORD dwSize = 0
20  );
21 
22  int DoModal();
23  TCHAR *GetPathName() { return gotFileName;};
24  OPENFILENAME &GetOFN() {
25  return m_ofn;
26  }
27 };
28 
29 #endif