ServerDlg.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
- // ServerDlg.h : header file
- //
- #if !defined(AFX_SERVERDLG_H__E0BDEE83_3E5B_486B_BC45_B9C4306E3754__INCLUDED_)
- #define AFX_SERVERDLG_H__E0BDEE83_3E5B_486B_BC45_B9C4306E3754__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define UWM_TRAYICON WM_APP + 1
- #include "service.h"
- #include "..publictrayicon.h"
- class CServerDlg : public CDialog
- {
- // Construction
- public:
- CServerDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CServerDlg)
- enum { IDD = IDD_SERVER_DIALOG };
- CButton m_btnCloseSvr;
- CButton m_btnOpenSvr;
- CString m_slocalip;
- UINT m_nlistenport;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CServerDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- CService m_service;
- // Generated message map functions
- //{{AFX_MSG(CServerDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnDestroy();
- afx_msg void OnOpendirsvr();
- afx_msg void OnClosedirsvr();
- afx_msg void OnLocalsetting();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnTishowwnd();
- afx_msg void OnTiexit();
- afx_msg void OnTiabout();
- afx_msg void OnTistartsvr();
- afx_msg void OnTiclosesvr();
- //}}AFX_MSG
-
- LRESULT OnTrayNotification(WPARAM wparam, LPARAM lparam);
- DECLARE_MESSAGE_MAP()
- protected:
- CTrayIcon m_otrayicon;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SERVERDLG_H__E0BDEE83_3E5B_486B_BC45_B9C4306E3754__INCLUDED_)