?? multimru.h
字號:
// MultiMRU.h : main header file for the MULTIMRU application
//
#if !defined(AFX_MULTIMRU_H__04AC04DC_4231_11D4_A415_5254AB1BFD4D__INCLUDED_)
#define AFX_MULTIMRU_H__04AC04DC_4231_11D4_A415_5254AB1BFD4D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CMultiMRUApp:
// See MultiMRU.cpp for the implementation of this class
//
#define NUM_FILTER 2 //定義文件類型種數;
class CMultiMRUApp : public CWinApp
{
protected:
CString szExt[NUM_FILTER]; //擴展名數組;
CRecentFileList* m_pRecentFileList[NUM_FILTER];//最近文件列表對象指針數組;
//重載標準設置裝載和保存函數;
void LoadStdProfileSettings(UINT nMaxMRU = _AFX_MRU_COUNT);
//_AFX_MRU_COUNT已被MFC定義為4,即缺省最大表項數為4.
void SaveStdProfileSettings();
//函數返回指定索引的擴展名;
CString GetExtension(int nIndex);
public:
CMultiMRUApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMultiMRUApp)
public:
virtual BOOL InitInstance();
//重載下面兩個虛擬函數;
virtual void AddToRecentFileList(LPCTSTR lpszPathName);
virtual int ExitInstance();
//重載析構函數;
virtual ~CMultiMRUApp();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CMultiMRUApp)
afx_msg void OnAppAbout();
//最近文件列表菜單響應函數;
afx_msg void OnUpdateRecentBMPFileMenu(CCmdUI* pCmdUI);
afx_msg void OnUpdateRecentJPGFileMenu(CCmdUI* pCmdUI);
afx_msg BOOL OnOpenRecentBMPFile(UINT nID);
afx_msg BOOL OnOpenRecentJPGFile(UINT nID);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MULTIMRU_H__04AC04DC_4231_11D4_A415_5254AB1BFD4D__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -