www.pudn.com > IPServer.rar > IpRegDemoDlg.h


// IpRegDemoDlg.h : 头文件 
// 
 
#pragma once 
#include "afxcmn.h" 
#include "server.h" 
#include "afxwin.h" 
#include "DrawList.h" 
#include "BtnST.h" 
#include "math.h" 
#include "Clock.h" 
#include "ConfigDlg.h" 
 
#define PI 3.1415926535897931 
 
 
///////////////////////////////////////// 
 
struct callbackinfo 
{ 
	bool badd; 
	char deviceip[32]; 
	char devicename[32]; 
	char deviceid[100]; 
	char netcardid[64]; 
	unsigned short port; 
	 
}; 
 
void OutputLocalTime(char *tmval); 
void GetCurrentPath(char *path); 
// CIpRegDemoDlg 对话框 
class CIpRegDemoDlg : public CDialog 
{ 
	//friend  
// 构造 
public: 
	CIpRegDemoDlg(CWnd* pParent = NULL);	// 标准构造函数 
 
// 对话框数据 
	enum { IDD = IDD_IPREGDEMO_DIALOG }; 
 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持 
 
 
// 实现 
protected: 
	HICON m_hIcon; 
 
	// 生成的消息映射函数 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg LRESULT OnNotifyIcon(WPARAM wParam, LPARAM lParam); 
	DECLARE_MESSAGE_MAP() 
public: 
	/*afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);*/ 
	afx_msg void OnControlPanel(); 
	afx_msg void OnStart(); 
	afx_msg void OnExit(); 
	afx_msg void OnCancel(); 
	afx_msg void OnStop(); 
	afx_msg void OnAbout(); 
	afx_msg void OnBnClickedButtonStart(); 
	CListCtrl m_deviceList; 
	afx_msg void OnBnClickedButtonStop(); 
	void OnMini(void); 
	CButtonST m_btnStart; 
	CButtonST m_btnStop; 
	CButtonST m_btnConfig; 
	BOOL m_log; 
	BOOL m_runatstart; 
	//void OnDestroy(); 
	//BOOL DestroyWindow(); 
	void LogToList(); 
 
protected: 
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); 
private: 
	NOTIFYICONDATA m_tnid; 
private: 
	double m_hourAngle; 
	double m_minAngle; 
	double m_secAngle; 
	CDrawList m_drawlist; 
	CClock m_clock; 
public: 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnBnClickedButtonConfig(); 
};