www.pudn.com > Éù²¨ÆµÂÊÏÔʾ .zip > OscilloGraph.h
#if !defined(AFX_OSCILLOGRAPH_H__7D7FA522_26A9_4E0F_84AA_AB48B151678B__INCLUDED_)
#define AFX_OSCILLOGRAPH_H__7D7FA522_26A9_4E0F_84AA_AB48B151678B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OscilloGraph.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// COscilloGraph window
class COscilloGraph : public CStatic
{
// Construction
public:
COscilloGraph();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COscilloGraph)
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Generated message map functions
protected:
CDC m_MainDC;
CBitmap m_MainBitmap;
CBitmap *m_pOldBitmap;
void DrawCtrl();
BYTE *m_pBuffer;
DWORD m_dwBufferLength;
// Implementation
public:
void SetBackgroundColor(COLORREF color);
void SetPixelColor(COLORREF color);
void SetData(LPBYTE pBytes, DWORD dwSize);
virtual ~COscilloGraph();
// Generated message map functions
protected:
COLORREF m_clrPixel;
COLORREF m_clrBackground;
//{{AFX_MSG(COscilloGraph)
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OSCILLOGRAPH_H__7D7FA522_26A9_4E0F_84AA_AB48B151678B__INCLUDED_)