AxibugEmuOnline/References/VirtuaNESex_src_191105/Recent.h

43 lines
751 B
C
Raw Permalink Normal View History

2024-08-05 17:58:53 +08:00
//
// Recent File <20>N<EFBFBD><4E><EFBFBD>X
//
#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__