⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfid_desktopreaderview.h

📁 RFID读卡器源码,vc.net编写,bcgp界面控件
💻 H
字号:
// RFID_DesktopReaderView.h : interface of the CRFID_DesktopReaderView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RFID_DesktopReaderVIEW_H__3952E28B_16AC_44FB_B047_EF7F8F348697__INCLUDED_)
#define AFX_RFID_DesktopReaderVIEW_H__3952E28B_16AC_44FB_B047_EF7F8F348697__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "stdafx.h"
#include "commDlg.h"
#include "afxcmn.h"
#include "DbTable.h"
#include "adodc1.h"
#include "datagrid2.h"
#include "afxwin.h"

class CRFID_DesktopReaderDoc;
//#include "adoDB.h"
//class CRFID_DesktopReaderView : public CFormView
class CRFID_DesktopReaderView : public CFormView
{
protected: // create from serialization only
	CRFID_DesktopReaderView();
	DECLARE_DYNCREATE(CRFID_DesktopReaderView)

// Attributes
public:
	enum{ IDD = IDD_DB_LIST };

	CRFID_DesktopReaderDoc* GetDocument();

protected:
	CImageList		m_ImagesHeader;
	CImageList		m_ImagesList;
	CBCGPHeaderCtrl	m_wndHeader;
	CCommDlg*		m_pCommDlg;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRFID_DesktopReaderView)
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CRFID_DesktopReaderView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRFID_DesktopReaderView)
//	afx_msg void OnViewPreviewPane();
//	afx_msg void OnUpdateViewPreviewPane(CCmdUI* pCmdUI);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	afx_msg void OnContextMenu(CWnd*, CPoint point);
	afx_msg void OnFilePrintPreview();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnDbConnect();
	afx_msg void OnDbDisconnect();
	afx_msg void OnDbSetting();
	afx_msg void OnCommConnect();
	afx_msg void OnCommDisconnect();
	afx_msg void OnCommSetting();
	int m_nBand;
	int m_nPort;
	int m_nParity;
	int m_nData;
	int m_strStopBit;
	int m_nLamp;
//	afx_msg void OnRfidSearch();
	
	_ConnectionPtr pConn;




protected:
	virtual void DoDataExchange(CDataExchange* pDX);
public:
	virtual void OnFinalRelease();
	CListCtrl m_cListAssociation;
	CListCtrl m_cListUnassociation;
	afx_msg void OnRfidAssociate();
	afx_msg void OnRfidDeassociate();
	void FillAssociationList(void);
	void FillUnassociationList(void);
	LRESULT OnMapedRFID(WPARAM wParam, LPARAM lParam);
	afx_msg void OnRfidCancle();
//	CAdodc1 m_AdoDC;
//	CDatagrid2 m_DataGrid;
	CComboBox m_cCOBField0;
	CComboBox m_cCOBField1;
	CComboBox m_cCOBField2;
	CComboBox m_cCOBField3;
	int FillFieldCOB(CComboBox& comboBox,CString strFieldName,CString strCon="");
	void FillCOB(void);
	afx_msg void OnCbnSelchangeCobField0();
	afx_msg void OnCbnSelchangeCobField1();
	afx_msg void OnCbnSelchangeCobField2();
	afx_msg void OnCbnSelchangeCobField3();
	afx_msg void OnBnClickedResetAll();
};

#ifndef _DEBUG  // debug version in RFID_DesktopReaderView.cpp
inline CRFID_DesktopReaderDoc* CRFID_DesktopReaderView::GetDocument()
   { return (CRFID_DesktopReaderDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RFID_DesktopReaderVIEW_H__3952E28B_16AC_44FB_B047_EF7F8F348697__INCLUDED_)

⌨️ 快捷键说明

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