Files
coco df489d5640 a
2026-07-03 16:05:30 +08:00

87 lines
2.5 KiB
C++

#if !defined(AFX_OPCREATESPTVIEW_H__E63838E5_EA94_4831_A299_C92DFB336322__INCLUDED_)
#define AFX_OPCREATESPTVIEW_H__E63838E5_EA94_4831_A299_C92DFB336322__INCLUDED_
#include "Channel.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// opcreatesptview.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// COpCreateSptView view
class CSptRecord;
class COpCreateSptView : public CScrollView
{
protected:
COpCreateSptView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(COpCreateSptView)
// Attributes
public:
CDC* m_pMemDC;
CChannel* m_pNewChannel;
CSptRecord* m_pCurSptRecord;
int m_iEAmount;
int m_iMul;
int m_iWinWidth;
int m_iWinHeight;
BOOL m_bIsDraw;
BOOL m_bIsStartRect;
CPoint m_startPoint;
CPoint m_endPoint;
CPoint m_oldPoint;
// Operations
public:
int SelectByRect(CPoint startPoint, CPoint endPoint);
void DrawRecPoint(int iRecCount, CDC* const pMemDC);
void DrawLY(CDC* const pMemDC);
void DrawEX(CDC* const pMemDC);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COpCreateSptView)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~COpCreateSptView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(COpCreateSptView)
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnOpSptTpGn();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void SetNToSelLevel(int iN, int iSelLevel);
void SetNUnderCurLevel(int iN);
void SetNToLevel(int iN);
void SetNToPoint(int iN);
CSptRecord* SelectByPoint(CPoint point);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPCREATESPTVIEW_H__E63838E5_EA94_4831_A299_C92DFB336322__INCLUDED_)