visual c++ 实例编程

源代码在线查看: clientdlg.h

软件大小: 21467 K
上传用户: wzy1
关键词: visual 编程
下载地址: 免注册下载 普通下载 VIP

相关代码

				// ClientDlg.h : header file
				//
				#ifndef CLIENTDLG_H
				#define CLIENTDLG_H
				
				#if !defined(AFX_CLIENTDLG_H__B4B5B9E7_4B00_11D6_82FF_0000E84D1E4B__INCLUDED_)
				#define AFX_CLIENTDLG_H__B4B5B9E7_4B00_11D6_82FF_0000E84D1E4B__INCLUDED_
				
				#if _MSC_VER > 1000
				#pragma once
				#endif // _MSC_VER > 1000
				
				/////////////////////////////////////////////////////////////////////////////
				// CClientDlg dialog
				
				class CClientDlg : public CDialog
				{
				// Construction
				public:
					UINT res;
				
					BOOL Init_net();
					BOOL Load();
					CClientDlg(CWnd* pParent = NULL);	// standard constructor
				
				// Dialog Data
					//{{AFX_DATA(CClientDlg)
					enum { IDD = IDD_CLIENT_DIALOG };
					CString	m_username;
					CString	m_userID;
					//}}AFX_DATA
				
					// ClassWizard generated virtual function overrides
					//{{AFX_VIRTUAL(CClientDlg)
					protected:
					virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
					//}}AFX_VIRTUAL
				
				// Implementation
				protected:
					HICON m_hIcon;
					WSADATA Data;
					SOCKADDR_IN destSockAddr;
					SOCKET destSocket;
					unsigned long destAddr;
					int status;
					int numsnt;
					int numrcv;
					HWND m_VideoWnd; //视频窗口句柄
					long m_VideoLength; //视频放映总长度
				
					// Generated message map functions
					//{{AFX_MSG(CClientDlg)
					virtual BOOL OnInitDialog();
					afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
					afx_msg void OnPaint();
					afx_msg HCURSOR OnQueryDragIcon();
					afx_msg void OnRegister();
					virtual void OnCancel();
					virtual void OnOK();
					afx_msg void OnTimer(UINT nIDEvent);
					//}}AFX_MSG
					DECLARE_MESSAGE_MAP()
				};
				
				//{{AFX_INSERT_LOCATION}}
				// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
				
				#endif // !defined(AFX_CLIENTDLG_H__B4B5B9E7_4B00_11D6_82FF_0000E84D1E4B__INCLUDED_)
				#endif // CLIENTDLG_H
							

相关资源