-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScintillaControl.h
78 lines (61 loc) · 1.9 KB
/
ScintillaControl.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
//******************************************************************************
//
// This file is part of the OpenHoldem project
// Source code: https://github.com/OpenHoldem/openholdembot/
// Forums: http://www.maxinmontreal.com/forums/index.php
// Licensed under GPL v3: http://www.gnu.org/licenses/gpl.html
//
//******************************************************************************
//
// Purpose:
//
//******************************************************************************
// MainFrm.h : interface of the CSciCtrl class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(SCICTRL)
#define SCICTRL
#define STR_SCINTILLAWND _T("Scintilla")
class CSciCtrl : public CWnd
{
// Construction / Destruction
public:
CSciCtrl();
virtual ~CSciCtrl();
// Operations
public:
void Init();
void SizeMargin();
char * GetBuffer();
void ClearAll();
void AddText(const char * words);
void SetText(const char * words);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSciCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
LRESULT SendEditor(UINT Msg, WPARAM wParam = 0, LPARAM lParam = 0) {
return ::SendMessage(this->GetSafeHwnd(), Msg, wParam, lParam);
}
protected:
void CSciCtrl::DoDataExchange(CDataExchange* pDX);
void SetAStyle(int style, COLORREF fore, COLORREF back = RGB(0xff, 0xff, 0xff), int size = -1, const char* face = nullptr);
// Process notification from scintilla control
DECLARE_DYNAMIC(CSciCtrl)
CWnd m_wndScintilla;
CString m_strPathname;
CStatic m_gotoLabel, m_findLabel;
CEdit m_gotoEdit, m_findEdit;
CButton m_gotoOK, m_autoCheckBox;
CButton m_findNext, m_findPrev;
BOOL canOpenFile = TRUE;
BOOL gotoBtnEnabled = FALSE;
BOOL findNextBtnEnabled = FALSE;
int line_number = 0;
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
};
#endif