www.pudn.com > IP_phone.rar > NC_ClientDlg.h


// NC_ClientDlg.h : header file 
// 
 
#if !defined(AFX_NC_CLIENTDLG_H__559E7BB9_C577_4C5A_9EC1_D4BD5D3C1380__INCLUDED_) 
#define AFX_NC_CLIENTDLG_H__559E7BB9_C577_4C5A_9EC1_D4BD5D3C1380__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#define WM_ICON_NOTIFY WM_USER+10 
#include "resource.h"  
#include "./tools/MyEditCtrl.h"   
 
//*********************** 
#include "./tools/SkinWin/EnBitmap.h" 
#include "./tools/SkinWin/MyBitmap.h" 
#include "./tools/SkinWin/SkinButton.h" 
#include "./tools/SkinWin/SkinResource.h" 
#include "./tools/SkinWin/SkinWin.h" 
#include "./tools/SkinWin/Subclass.h" 
 
#include "./tools/BtnST/BtnST.h" 
 
class CConnectionSocket; 
 
///////////////////////////////////////////////////////////////////////////// 
// CNC_ClientDlg dialog 
 
class CSendSocket; 
class CRecSocket; 
class CWaveIn; 
class CWaveOut; 
class CNC_ClientDlg : public CDialog 
{ 
// Construction 
public: 
	////////////////////////////// 
	CToolBar m_wndtoolbar; 
	CSkinButtonResource     m_btnres;   //skin button resource 
	CSkinWin                m_skinWin;  //skin win 
	BOOL                    m_bFirst;   //first time call 
	CObList m_wndList;                  //hold button instance 
 
	CConnectionSocket *con_socket; 
 
	//系统信号量 
	bool bconnect; 
	bool bwait; 
	bool bstart; 
	bool btest; 
 
	CSendSocket *send_socket; 
	CRecSocket *rec_socket; 
	CWaveIn *wave_in; 
 
	CString Sever_ip; 
	int send_port; 
	int count; 
	//char wavebuffer[980]; 
	SHORT wavebuffer[1024]; 
	//char wavebuffer[60]; 
	 
	////////////////////////////// 
	void Split(); //将窗体分为6块动画窗体效果 
	LRESULT OnTrayNotification(WPARAM wParam,LPARAM lParam); 
	BOOL SetSkin( CString file ); 
	//BOOL SubClassButton( HWND hwnd ); 
 
	void LoadStateIcon(int state); 
	void AddSysMsg(int flag,CString msg); 
	BOOL Start(); 
	void ShowWave(); 
    ////////////////////////////// 
	CNC_ClientDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CNC_ClientDlg) 
	enum { IDD = IDD_NC_CLIENT_DIALOG }; 
	CButtonST	m_menu_sys;  
	CButtonST	m_menu_inf;   
	CButtonST	m_menu_hlp;   
	CStatic	m_icon_state; 
	CString	m_state; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CNC_ClientDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
	CImageList m_HeadIcon; 
	CTrayIcon m_TrayIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CNC_ClientDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnAppAbout(); 
	afx_msg void OnAppExit(); 
	afx_msg void OnClose(); 
	virtual void OnOK(); 
	afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult); 
    virtual void OnCancel(); 
	afx_msg void OnTrayShow(); 
	afx_msg void OnTrayExit(); 
	afx_msg void OnAppHide(); 
	afx_msg void OnAppInfSys(); 
	afx_msg void OnAppInfNetwork(); 
	afx_msg void OnDestroy(); 
	afx_msg void OnAppConnect(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnAppTest(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NC_CLIENTDLG_H__559E7BB9_C577_4C5A_9EC1_D4BD5D3C1380__INCLUDED_)