Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhazhist.h
[詳解]
1/*==========================================================================*/
2/* Lhaz 履歴 lhaz@chitora.jp */
3/*==========================================================================*/
4#ifndef _LHAZHIST_H
5#define _LHAZHIST_H
6
7#include "altstr.hpp"
8#include <stdio.h>
9#include <windows.h>
10#include <vector>
11#include "resource.h"
12
13using namespace std;
14
15class LHAZHIST {
16public:
17 static int GetMax(void) { return LHAZHISTMAX; }
18 static int GetHistMax(void) { return HistMax; }
19 //
20 LHAZHIST(HMENU hmenu, UINT item);
22 void Add(const WSTR&);
23 void EnableMenu(UINT);
24 const WSTR& Get(int) const;
25 void Clear(void);
26 void SetHistMax(int max);
27
28private:
29 static const int LHAZHISTMAX;
30 static const LPTSTR VALUENAME;
31 static unsigned int HistMax;
32 static const TCHAR LHAZREG[];
33 //
34 HMENU Hmenu;
35 UINT Item;
36 vector<WSTR> History;
37 //
38 void DispMenu(void);
39
40};
41
42#endif
Definition lhazhist.h:15
static int GetMax(void)
Definition lhazhist.h:17
void Clear(void)
Definition lhazhist.cpp:134
static const TCHAR LHAZREG[]
Definition lhazhist.h:32
UINT Item
Definition lhazhist.h:35
vector< WSTR > History
Definition lhazhist.h:36
static int GetHistMax(void)
Definition lhazhist.h:18
void EnableMenu(UINT)
Definition lhazhist.cpp:92
static unsigned int HistMax
Definition lhazhist.h:31
const WSTR & Get(int) const
Definition lhazhist.cpp:126
‾LHAZHIST()
Definition lhazhist.cpp:40
void DispMenu(void)
Definition lhazhist.cpp:59
void SetHistMax(int max)
Definition lhazhist.cpp:143
HMENU Hmenu
Definition lhazhist.h:34
void Add(const WSTR &)
Definition lhazhist.cpp:102
static const int LHAZHISTMAX
Definition lhazhist.h:29
static const LPTSTR VALUENAME
Definition lhazhist.h:30