forked from koron/ABrowser
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CABr.h
76 lines (62 loc) · 1.89 KB
/
CABr.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// vi:set ts=4 sts=4 sw=4 tw=0:
//
// ANSIBrowserƒNƒ‰ƒX since 1997.09.03
// CABr.h:ClassABrowserƒwƒbƒ_[ Written by KoRoN
// Version 1.01
// Last Change: 17-Oct-2003.
#ifndef CLASS_ABROWSER_INCLUDED
#include "CCmdLine.h"
#include "CABrView.h"
#include "CStatusW.h"
#define CAB_WINDOW_MENU 0x00000001
#define CAB_WINDOW_STATUS 0x00000002
#define CAB_WINDOW_REVERSE 0x00000004
// ClassABrowser //////////////////////////////////////////////////////////1.00
class ClassABrowser
: ClassCommandLine, public ClassABrowserView, public ClassStatusWindow
{
public:
bool m_bEditOpened;
bool canOpenEditor() { return !m_bEditOpened; }
bool openEditor();
bool selectEditor();
public:
HINSTANCE hInst;
HWND Init(HINSTANCE hInst);
int AutoHeight();
int AutoWidth();
int ChangeFilter(DWORD dwFilter);
int Create(HWND hWnd);
int Destroy();
int DropFile(HANDLE hDrop);
int Find(char *psz = NULL, bool reverse = false);
int InitMenu();
int MenuSelect(UINT uItem = 0);
void MenuStatus(UINT uItem, UINT uFlag);
int OpenFile(char* szOpenFile);
int OpenFile(void);
int Paint();
int SetLineNumber();
int ShowMenu();
int ShowStatus();
int Size();
void SetInformation();
ClassABrowser(char* szDefTitle = "ABrowser");
~ClassABrowser();
HWND hWnd;
RECT rectWindow;
protected:
private:
HWND hPrevWnd;
void RegLoad();
void RegSave();
DWORD dwWindow;
HMENU hMenu;
char* szDefTitle;
char* szTitle;
};
//////////////////////////////////////////////KoRoN/1997.09.03/KoRoN/1997.10.14
#define CLASS_ABROWSER_INCLUDED
#endif
// ///////////////////////////////////////////////////////////////////////1.00
//////////////////////////////////////////////KoRoN/1997.09.03/KoRoN/1997.09.03