#if !defined(SHADER_EDITOR_FILE_DIALOG_H) #define SHADER_EDITOR_FILE_DIALOG_H #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // ShaderEditorFileDialog dialog struct OPENFILENAMEEX : public OPENFILENAME { void * pvReserved; DWORD dwReserved; DWORD FlagsEx; }; class ShaderEditorFileDialog : public CFileDialog { DECLARE_DYNAMIC(ShaderEditorFileDialog) public: ShaderEditorFileDialog(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL); BOOL UpdateTextOnly(); BOOL m_UpdateText; int DoModal(); protected: #if _MSC_VER < 1300 OPENFILENAMEEX m_ofnEx; #endif //{{AFX_DATA(CCustomFileDialog) enum { IDD = IDD_SHADERCUSTOMFILEDIALOG }; CButton m_updateTextButton; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDebuggingToolsWnd) protected: virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL //{{AFX_MSG(CuikFileDialog) virtual BOOL OnInitDialog(); // afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg BOOL OnFileNameOK(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(SHADER_EDITOR_FILE_DIALOG_H)