dirdialog.h
来自「3D reconstruction, medical image process」· C头文件 代码 · 共 61 行
H
61 行
#if !defined(DIRDIALOG_INCLUDED_)#define DIRDIALOG_INCLUDED_#if _MSC_VER >= 1000#pragma once#endif // _MSC_VER >= 1000// DirDialog.h - header for RxDirDialog class// RxDlgWnd - intercepts messages from child controlsclass RxDlgWnd : public CWnd{public: void CheckDir(const CString &ss); // Display directory contents int m_iType;protected: afx_msg void OnOpen(); // Open button clicked afx_msg void OnSize(UINT nType, int cx, int cy); DECLARE_MESSAGE_MAP()};// RxDirEdit - edit control classclass RxDirEdit : public CEdit{protected: afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg UINT OnGetDlgCode(); DECLARE_MESSAGE_MAP()};// RxDirDialog - directory selection dialogclass RxDirDialog : public CFileDialog{public: RxDirDialog(LPCTSTR initial = NULL, LPCTSTR filter = NULL, CWnd* pParentWnd = NULL); CString GetPath() { return m_strPath; } // Overriden members of CFileDialog virtual void OnInitDone(); virtual void OnFolderChange(); // Disallow selection of files (since we're only selecting directories) virtual BOOL OnFileNameOK() { return TRUE; } RxDlgWnd m_DlgWnd; // Subclassed dialog window (parent of RxDirDialog window)private: CString m_strPath; // Current directory CString m_strFilter; // The current file filters string (used for string storage // for internal use of File Open dialog) RxDirEdit m_Edit; // Edit control where you can type in a dir. name CButton m_Open; // "Open" button (replaces OK button)};#endif // DIRDIALOG_INCLUDED_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?