www.pudn.com > bitmappaint.rar > radarView.h
// radarView.h : interface of the CRadarView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_RADARVIEW_H__0412EC10_2420_11D5_9983_00E04C39AD0A__INCLUDED_)
#define AFX_RADARVIEW_H__0412EC10_2420_11D5_9983_00E04C39AD0A__INCLUDED_
#include "property.h" // Added by ClassView
#include "Wzdbtmap.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "radardoc.h"
class CRadarView : public CScrollView
{
protected: // create from serialization only
CRadarView();
DECLARE_DYNCREATE(CRadarView)
// Attributes
public:
CRadarDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRadarView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CRadarView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRadarView)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnFilePrint();
afx_msg void OnFilePrintPreview();
afx_msg void OnHLong();
afx_msg void OnHShort();
afx_msg void OnVLong();
afx_msg void OnUpdateHlong(CCmdUI* pCmdUI);
afx_msg void OnVShort();
afx_msg void OnUpdateHshort(CCmdUI* pCmdUI);
afx_msg void OnUpdateVlong(CCmdUI* pCmdUI);
afx_msg void OnUpdateVshort(CCmdUI* pCmdUI);
afx_msg void OnImageSave();
//}}AFX_MSG
afx_msg LRESULT OnUserApply(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
bool m_bFillLeft;
bool m_bFillRight;
bool m_bShowWaveLine;
void ShowWave(CDC* pDC);
CPara m_para;
public:
COLORREF m_BkColor;
COLORREF m_WaveColor;
bool m_bBitmapIsNone;
CWzdBitmap bb;
int PointGrayValue(int m_nGrayFrom,int m_nGrayTo,float MaxMin,float ptValue);
int PointRedValue(float ptValue);
int PointGreenValue(float ptValue);
int PointBlueValue(float ptValue);
void ShowGray(CDC *pDC);
void ShowColor(CDC* pDC);
int m_nLeftx;
int m_nLefty;
int m_nRightx;
int m_nRighty;
int m_nTraceToTrace;
int m_nTraceFrom;
int m_nTraceTo;
int m_nTimeFrom;
int m_nTimeTo;
int m_nPointFrom;
int m_nPointTo;
int m_nTraceWidth;
int m_nVAxisLength;
int m_nHAxisLength;
int m_nMaxMin;
int m_nGrayFrom;
int m_nGrayTo;
float PointStep;
};
#ifndef _DEBUG // debug version in radarView.cpp
inline CRadarDoc* CRadarView::GetDocument()
{ return (CRadarDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RADARVIEW_H__0412EC10_2420_11D5_9983_00E04C39AD0A__INCLUDED_)