comportbase.h

来自「PW芯片方案Flash ROM烧写程序」· C头文件 代码 · 共 84 行

H
84
字号
//---------------------------------------------------------------------------
// Pixelworks Inc. Company Confidential Strictly Private
//
// $Archive: $
// $Revision: 1.1.1.1 $
// $Author: KevinM $
// $Date: 2003/09/29 18:19:04 $
//
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Copyright 1997-2003 (c) Pixelworks Inc.
//
// Pixelworks owns the sole copyright to this software. Under international 
// copyright laws you (1) may not make a copy of this software except for 
// the purposes of maintaining a single archive copy, (2) may not derive
// works herefrom, (3) may not distribute this work to others. These rights 
// are provided for information clarification, other restrictions of rights 
// may apply as well.
//
// This is an unpublished work.
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>>>>> WARRANTEE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Pixelworks Inc. MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THE USE OF
// THIS SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
// PURPOSE.
// --------------------------------------------------------------------------
//
#ifndef __COMPORT_H__
#define __COMPORT_H__

#include "Communication.h"

// Forward declarations

/////////////////////////////////////////////////////////////////////////////
// CComPortWrapper window

class CComPortBase : public CCommunication
{
public:
	CComPortBase();
	virtual ~CComPortBase();

    int Create(CWnd *pParent);

    BOOL SetBaudRate(int nBaudRate);
    BOOL SetComPort(int nPort);
    BOOL CloseComPort();

    void OnComPortMessage(long wParam, long lParam);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CComPortBase)
	//}}AFX_VIRTUAL

	// Generated message map functions
protected:
	//{{AFX_MSG(CComPortBase)
	//}}AFX_MSG
#ifdef _USE_ACTIVEX
    afx_msg void OnCommEvent();
#endif

	DECLARE_MESSAGE_MAP()

#ifdef _USE_ACTIVEX
	DECLARE_EVENTSINK_MAP()
#endif

    // Pure virtual function (must be overridden in classes derived from
    // this class).
    virtual void ReceivedData(CByteArray& ref_byteArray) = 0;

private:
    CWnd       *m_pWnd;
};

/////////////////////////////////////////////////////////////////////////////
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?