-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSharedMemWinView.h
More file actions
88 lines (66 loc) · 2.3 KB
/
SharedMemWinView.h
File metadata and controls
88 lines (66 loc) · 2.3 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
// SharedMemWinView.h : CSharedMemWinView クラスのインターフェイス
//
#pragma once
#include "stdafx.h"
#define DISPLAY_MARGIN 5
class CSharedMemWinDoc;
class CSharedMemWinApp;
class CSharedMemWinView : public CScrollView
{
protected: // シリアル化からのみ作成します。
CSharedMemWinView();
DECLARE_DYNCREATE(CSharedMemWinView)
public:
CSharedMemWinDoc* GetDocument() const;
CSharedMemWinApp* pApp;
// オーバーライド
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // 構築後に初めて呼び出されます。
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
public:
virtual ~CSharedMemWinView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// 生成された、メッセージ割り当て関数
protected:
int m_msx;
int m_msy;
int m_mex;
int m_mey;
int m_mpress;
int m_dragsx;
int m_dragsy;
int m_dragex;
int m_dragey;
afx_msg int OnCreate(LPCREATESTRUCT lpcs);
afx_msg void OnDestroy(void);
afx_msg void OnDraw(CDC* pDC);
DECLARE_MESSAGE_MAP()
public:
CFont m_ScreenFont;
int m_FontSizeX;
int m_FontSizeY;
int m_ScrollSizeX;
int m_ScrollSizeY;
int m_DocLastPos;
int m_copysy;
int m_copyey;
void resetScrollSize(void);
void setScrollPosition(CDC* pDC, CBufferRing* pBR);
void clearViewDoc(void);
CString getCopyData(void);
BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
};
#ifndef _DEBUG // SharedMemWinView.cpp のデバッグ バージョン
inline CSharedMemWinDoc* CSharedMemWinView::GetDocument() const
{ return reinterpret_cast<CSharedMemWinDoc*>(m_pDocument); }
#endif