www.pudn.com > DalsaNetlink.rar > CyDeviceDlg.h


#if !defined(AFX_CYDEVICEDLG_H__27BFB5F2_7241_4320_A76C_4C30E0807EC3__INCLUDED_) 
#define AFX_CYDEVICEDLG_H__27BFB5F2_7241_4320_A76C_4C30E0807EC3__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// CyDeviceDlg.h : header file 
// 
 
#include "CyConfig.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CyDeviceDlg dialog 
 
class CyDeviceDlg : public CPropertyPage 
{ 
	DECLARE_DYNCREATE(CyDeviceDlg) 
 
// Construction 
public: 
    friend class CyPropertySheet; 
	CyDeviceDlg(); 
	~CyDeviceDlg(); 
 
// Dialog Data 
	//{{AFX_DATA(CyDeviceDlg) 
	enum { IDD = IDD_DEVICE_DLG }; 
	CComboBox	mAdapterIDControl; 
	CSpinButtonCtrl	mPacketSizeSpin; 
	CComboBox	mDeviceModeControl; 
	CEdit	mPacketSizeControl; 
	CEdit	mDeviceInfo; 
	CStatic	mDeviceStatus; 
	CComboBox	mCurrentDevice; 
	CIPAddressCtrl	mDeviceIP; 
	UINT	mAnswerTimeout; 
	UINT	mFirstPacketTimeout; 
	int		mDeviceMode; 
	UINT	mPacketTimeout; 
	UINT	mRequestTimeout; 
	CString	mIPName; 
	CString	mDeviceName; 
	CString	mCameraName; 
	UINT	mPacketSize; 
	CString	mDeviceMAC1; 
    CString	mDeviceMAC2; 
    CString	mDeviceMAC3; 
    CString	mDeviceMAC4; 
    CString	mDeviceMAC5; 
    CString	mDeviceMAC6; 
	BOOL	mForceIPOnConnect; 
	//}}AFX_DATA 
 
    unsigned char mDeviceID; 
    unsigned char mModuleID; 
    unsigned char mSubID; 
 
    BOOL     mMulticastEnabled; 
    BOOL     mMulticastMaster; 
    BOOL     mMulticastNoData; 
    CString  mMulticastAddress; 
 
// Overrides 
	// ClassWizard generate virtual function overrides 
	//{{AFX_VIRTUAL(CyDeviceDlg) 
	public: 
	virtual BOOL OnKillActive(); 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	virtual void WinHelp(DWORD dwData, UINT nCmd = HELP_CONTEXT); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
    void SetModified(BOOL bChanged = TRUE ); 
 
// Implementation 
protected: 
	// Generated message map functions 
	//{{AFX_MSG(CyDeviceDlg) 
	afx_msg void OnDeviceFind(); 
	afx_msg void OnDeviceDelete(); 
	afx_msg void OnDeviceTest(); 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnDeviceAdd(); 
	afx_msg void OnSelchangeCurrentDevice(); 
	afx_msg void OnCameraBrowse(); 
	afx_msg void OnFieldchangedDeviceIp(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnChangeDeviceIpName(); 
	afx_msg void OnFileOpen(); 
	afx_msg void OnFileNew(); 
	afx_msg void OnDeltaposDevicePacketSizeSpin(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnSelchangeDeviceMode(); 
	afx_msg void OnDeviceReconnect(); 
	afx_msg void OnDeviceMulticast(); 
	afx_msg void OnDeviceTimeout(); 
	afx_msg void OnFileSave(); 
	afx_msg void OnFileSaveas(); 
	afx_msg void OnSystemSerialPort(); 
	afx_msg void OnSelchangeDeviceAdapterId(); 
	afx_msg void OnChangeDeviceMac(); 
	afx_msg void OnDeviceForceIp(); 
	//}}AFX_MSG 
 
	afx_msg void OnDropFiles(HDROP hDropInfo); 
    afx_msg void OnControlChanged(); 
 
	DECLARE_MESSAGE_MAP() 
 
    void EnableControls( bool aEnabled ); 
 
    bool InternalApply(); 
 
    bool mModified; 
    bool mDoApply; 
    unsigned int mCurrentDeviceIndex; 
 
    void UpdateAdapterIDs(); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CYDEVICEDLG_H__27BFB5F2_7241_4320_A76C_4C30E0807EC3__INCLUDED_)