8 #ifndef _EVVIEW_H_INCLUDED_ 9 #define _EVVIEW_H_INCLUDED_ 13 #endif // _MSC_VER > 1000 30 #pragma pack(push,_FVCL_PACKING) 46 virtual BOOL Create(
LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd,
UINT nID, CCreateContext* pContext = NULL);
47 virtual BOOL OnCmdMsg(
UINT nID,
INT nCode,
void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
55 afx_msg
INT OnCreate(LPCREATESTRUCT lpCreateStruct);
56 afx_msg
BOOL OnEraseBkgnd(CDC* pDC);
57 afx_msg
void OnPaint();
58 afx_msg
void OnSize(
UINT nType,
INT cx,
INT cy);
59 afx_msg
void OnVScroll(
UINT nSBCode,
UINT nPos, CScrollBar* pScrollBar);
60 afx_msg
void OnHScroll(
UINT nSBCode,
UINT nPos, CScrollBar* pScrollBar);
61 afx_msg
BOOL OnMouseWheel(
UINT nFlags,
SHORT zDelta, CPoint pt);
62 afx_msg LRESULT OnNcHitTest( CPoint point );
63 afx_msg
BOOL OnSetCursor(CWnd* pWnd,
UINT nHitTest,
UINT message);
64 afx_msg
void OnLButtonDown(
UINT nFlags, CPoint point);
65 afx_msg
void OnLButtonUp(
UINT nFlags, CPoint point);
66 afx_msg
void OnMouseMove(
UINT nFlags, CPoint point);
67 afx_msg
void OnRButtonDown(
UINT nFlags, CPoint point);
68 afx_msg
void OnRButtonUp(
UINT nFlags, CPoint point);
92 virtual bool Update(
bool bReDraw =
true );
93 virtual void ReDraw(
bool Invalidate =
true );
95 virtual void DoActual(
bool bReDraw =
true );
96 virtual void DoExpand(
bool bReDraw =
true );
97 virtual void DoReduce(
bool bReDraw =
true );
99 virtual bool SetMagnification(
DOUBLE mag );
100 virtual DOUBLE GetMagnification()
const;
101 virtual bool FitImageSize(
bool bFitWidth=
true,
bool bFitHeight=
true );
103 bool IsFitImageHorz()
const;
104 bool IsFitImageVert()
const;
106 bool SetScrollBarVisible(
bool blVisible );
107 bool GetScrollBarVisible()
const;
109 bool SetScrollBarImmediate(
bool blEnable );
110 bool GetScrollBarImmediate()
const;
112 bool SetScrollBarPage(
INT iBar,
INT iSize,
BOOL blReDraw = TRUE );
113 INT GetScrollBarPage(
INT iBar );
115 bool SetScrollBarPos(
INT iBar,
INT iPos,
BOOL blReDraw = TRUE );
116 INT GetScrollBarPos(
INT iBar );
118 bool SetScrollBarRange(
INT iBar,
INT iMin,
INT iMax,
BOOL blReDraw = TRUE );
119 bool GetScrollBarRange(
INT iBar,
INT *piMin,
INT *piMax );
121 CSize GetImageSize()
const;
123 CPoint GetMousePosition(
INT coordinate )
const;
128 virtual bool SetFocusOption(
INT option );
129 virtual INT GetFocusOption()
const;
131 virtual bool SetGripOption(
INT option );
132 virtual INT GetGripOption()
const;
134 virtual bool SetCursorType(
INT iType );
135 virtual INT GetCursorType()
const;
137 virtual bool SetLayerVisible(
INT iLayer,
bool visible );
138 virtual bool GetLayerVisible(
INT iLayer )
const;
154 virtual void _OnDrawOverlay();
155 virtual bool _OnChangeCursor(
UINT nFlags, CPoint point );
157 bool _UpdateMouseInfo(
UINT nFlags, CPoint point );
158 void _InitScrollBar();
159 void _UpdateScrollBar();
162 virtual void OnCommandPre(
CEvDialog* dlg, WPARAM wParam, LPARAM lParam );
163 virtual void OnCommandPost(
CEvDialog* dlg, WPARAM wParam, LPARAM lParam );
164 virtual void OnWndMsgPre(
CEvDialog* dlg,
UINT message, WPARAM wParam, LPARAM lParam );
165 virtual void OnWndMsgPost(
CEvDialog* dlg,
UINT message, WPARAM wParam, LPARAM lParam );
182 DECLARE_MESSAGE_MAP()
189 #endif // _EVVIEW_H_INCLUDED_ virtual void DoDataExchange(CDataExchange *pDX)
ダイアログ データの交換と有効性チェック
Definition: EvDlgCtrl.cpp:29
CPoint pntEffective
マウス位置 (有効領域座標)
Definition: EvView.h:87
画像ビュークラス
Definition: EvView.h:32
CPoint pntDisplay
マウス位置 (表示領域座標)
Definition: EvView.h:86
tagSCROLLBAR m_tSCROLLBAR
スクロールバー情報
Definition: EvView.h:178
tagMOUSE_INFO m_tMouseInfo
マウス情報
Definition: EvView.h:179
UINT nFlags
マウス押下状態
Definition: EvView.h:83
SCROLLINFO siV
垂直スクロールバー
Definition: EvView.h:76
LPCSTR LPCTSTR
汎用文字列型(const付き)
Definition: FvDefs.h:57
ダイアログコントロール基本クラス
Definition: EvDlgCtrl.h:23
矩形領域描画クラス
Definition: EvDrawRectArea.h:23
FVCL::Data::CFvImage * m_pImage
画像オブジェクト
Definition: EvView.h:171
CSize m_sizeImage
画像のサイズ
Definition: EvView.h:180
マウス情報
Definition: EvView.h:81
int INT
整数型(32ビット)
Definition: FvDefs.h:36
#define IDD_EVC_VIEW
ダイアログリソースID
Definition: resource.h:13
INT m_GripOption
グリップオプション
Definition: EvView.h:173
CEvDrawAscope m_DrawAscope
濃度波形描画用
Definition: EvView.h:169
virtual BOOL PreTranslateMessage(MSG *pMsg)
ウィンドウメッセージの変換
Definition: EvDlgCtrl.cpp:81
CPoint pntScrollBar
マウス押下時のスクロールバー位置 (画像座標)
Definition: EvView.h:85
CPoint pntMouse
マウス押下位置 (表示領域座標)
Definition: EvView.h:84
double DOUBLE
倍精度浮動小数点型(64ビット)
Definition: FvDefs.h:62
short SHORT
整数型(16ビット)
Definition: FvDefs.h:34
bool m_bIsDialog
ウィンドウ種別
Definition: EvView.h:177
スクロールバー情報
Definition: EvView.h:73
INT m_iLayerSize
オーバレイ枚数(初期値)
Definition: EvView.h:176
矩形構造体
Definition: _structure.h:145
FVCL::GDI::CFvDisplay m_display
画像描画クラス
Definition: EvView.h:150
bool blVisible
スクロールバー有効/無効
Definition: EvView.h:77
bool blImmediate
即座にスクロール
Definition: EvView.h:78
CEvDrawRectArea m_DrawProcArea
処理範囲描画用
Definition: EvView.h:170
int BOOL
ブーリアン型
Definition: FvDefs.h:31
unsigned int UINT
整数型(32ビット)[符号なし]
Definition: FvDefs.h:37
ディスプレイクラス
Definition: FvDisplay.h:31
ダイアログ基本クラス
Definition: EvDialog.h:25
濃度波形描画クラス
Definition: EvDrawAscope.h:23
グリッド描画クラス
Definition: EvDrawGrid.h:23
CPoint pntImage
マウス位置 (画像座標)
Definition: EvView.h:88
INT m_iCursorType
マウスカーソル操作モード
Definition: EvView.h:174
INT m_FocusOption
フォーカスオプション
Definition: EvView.h:172
SCROLLINFO siH
水平スクロールバー
Definition: EvView.h:75
virtual BOOL Create(UINT ctrlID, const RECT &rect, CWnd *parent, UINT dlgid)
モードレスダイアログの生成
Definition: EvDlgCtrl.cpp:53
画像オブジェクト
Definition: FvImage.h:64
CEvDrawGrid m_DrawGrid
グリッド描画用
Definition: EvView.h:168
FVCL::CFvList< bool > m_LayerVisible
オーバレイ常時表示モード
Definition: EvView.h:175