visual c++ 实例编程
源代码在线查看: clientdlg.h
// 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