Develop and Download Open Source Software

Browse CVS Repository

Contents of /tombo/Tombo/Src/YAEditor.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.11 - (show annotations) (download) (as text)
Sat Sep 30 12:48:08 2006 UTC (17 years, 6 months ago) by hirami
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
File MIME type: text/x-chdr
* FIX: view mode is not work(#9105)

1 #ifndef YAEDITOR_H
2 #define YAEDITOR_H
3
4 #include "MemoDetailsView.h"
5
6 class YAEdit;
7 class MemoManager;
8 class YAEDetailsViewCallback;
9
10 class YAEditor : public MemoDetailsView {
11 YAEdit *pEdit;
12 DWORD nID;
13
14 YAEDetailsViewCallback *pYAECallback;
15
16 BOOL SetMemo(LPCTSTR pMemo, DWORD nPos, BOOL bReadOnly);
17
18 public:
19
20 YAEditor(MemoManager *pMgr);
21 virtual ~YAEditor();
22 BOOL Init(DWORD nID);
23
24 BOOL Create(LPCTSTR pName, RECT &r, HWND hParent, HINSTANCE hInst, HFONT hFont);
25 void SetFocus();
26 void MoveWindow(DWORD x, DWORD y, DWORD nWidth, DWORD nHeight);
27
28 BOOL IsModify();
29 void ResetModify();
30
31 void SetMDSearchFlg(BOOL bFlg);
32
33 LPTSTR GetMemo();
34
35 BOOL Show(int nCmdShow);
36
37 void SetTabstop() {}
38 BOOL SetFolding(BOOL bFold);
39 void SetReadOnly(BOOL bReadOnly);
40 BOOL IsReadOnly();
41
42 void SetModifyStatus() {}
43
44 void SetFont(HFONT hFont);
45
46 BOOL OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
47 BOOL OnHotKey(HWND hWnd, WPARAM wParam) { return TRUE; }
48 void OnGetFocus();
49
50 DWORD GetCursorPos();
51 DWORD GetInitialPos() { return 0; }
52
53 void SelectAll() {}
54
55 void ChangeModifyStatusNotify(BOOL bStatus);
56 void SetSelectRegion(DWORD nStart, DWORD nEnd);
57
58 BOOL ReplaceText(LPCTSTR p);
59
60 //////////////////////////
61 // commands
62 void CmdUndo();
63 void CmdCut();
64 void CmdCopy();
65 void CmdPaste();
66 void CmdBackSpace();
67 void CmdSelAll();
68 };
69
70 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26