⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mydlg.h

📁 vc访问多个数据库。
💻 H
字号:
////////////////////////////////////////////////////////////////
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Compiles with Visual C++ 6.0 for Windows XP and probably Windows 2000 too.
//
#include "FileDlgHelper.h"

//////////////////
// My open dialog -- customized to add preview, debug panes, and Select All
// button.
//
class CMyOpenDlg : public CFileDialog {
protected:
	CFileDlgHelper m_dlghelper;			 // helper for file dialogs
	CEdit	m_edit1;								 // edit control for preview
	CEdit	m_edit2;								 // another for debug info

	// Heplers
	CString GetTextPreview(LPCTSTR pszPath);
	void AddText(CEdit& wndEdit, LPCTSTR lpText, BOOL bClear=FALSE);
	void ShowFileInfo();

public:
	CMyOpenDlg();

	// Handle CDN_ notifications
	virtual void OnFileNameChange();
	virtual void OnFolderChange();
	virtual void OnTypeChange();

	// Command/message/UI handlers/overrides
	virtual int DoModal();
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnSelectAll();
	afx_msg void OnUpdateSelectAll(CCmdUI* pCmdUI);

	DECLARE_DYNAMIC(CMyOpenDlg)
	DECLARE_MESSAGE_MAP()
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -