forked from tianzhansheng/virtuanessrc097
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Recent.h
42 lines (32 loc) · 1.54 KB
/
Recent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Recent File クラス
//
#ifndef __CRECENT_INCLUDED__
#define __CRECENT_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
#include "Pathlib.h"
#include "Registry.h"
class CRecent
{
public:
static LPCSTR GetName( INT nID );
static LPCSTR GetPath( INT nID );
static void UpdateMenu( HMENU hMenu );
static void Add( LPCSTR lpszPath );
static void Load();
static void Save();
protected:
enum { RECENT_MAX=10 };
static CHAR m_RecentName[RECENT_MAX][_MAX_PATH];
static CHAR m_RecentPath[RECENT_MAX][_MAX_PATH];
static CHAR m_TempPath[_MAX_PATH];
// Helper
static void MakeManuPath( LPSTR lpszPath );
private:
};
#endif // !__CRECENT_INCLUDED__