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 
13 using namespace std;
14 
15 class LHAZHIST {
16 public:
17  static int GetMax(void) { return LHAZHISTMAX; }
18  static int GetHistMax(void) { return HistMax; }
19  //
20  LHAZHIST(HMENU hmenu, UINT item);
21  ‾LHAZHIST();
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 
28 private:
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
static unsigned int HistMax
Definition: lhazhist.h:31
HMENU Hmenu
Definition: lhazhist.h:34
static const LPTSTR VALUENAME
Definition: lhazhist.h:30
static const int LHAZHISTMAX
Definition: lhazhist.h:29
vector< WSTR > History
Definition: lhazhist.h:36
Definition: lhazhist.h:15
static int GetMax(void)
Definition: lhazhist.h:17
static int GetHistMax(void)
Definition: lhazhist.h:18
UINT Item
Definition: lhazhist.h:35