SourceCodeSky QQ客服 SourceCodeSky 400电话 客服电话 暂无

MyQQDlg.h ( 文件浏览 )

  • keepall 发布于 2016-08-23 22:18
  • 浏览次数:642
  • 下载次数: 8
  • 下载需 10 积分
  • 侵权举报
// MyQQDlg.h : header file
//

#if !defined(AFX_MYQQDLG_H__F42FE5AC_E2CC_44AB_9D0A_748191BC989F__INCLUDED_)
#define AFX_MYQQDLG_H__F42FE5AC_E2CC_44AB_9D0A_748191BC989F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//#include "ColorListBox.h"
/////////////////////////////////////////////////////////////////////////////
// CMyQQDlg dialog

class CMyQQDlg : public CDialog
{
// Construction
public:
    CMyQQDlg(CWnd* pParent = NULL);    // standard constructor

// Dialog Data
    //{{AFX_DATA(CMyQQDlg)
    enum { IDD = IDD_MYQQ_DIALOG };
    CProgressCtrl    m_Progress;
    CListBox    m_AddMsgLIst;
    CIPAddressCtrl    m_You_IP;
    CString    m_MsgSend;
    //}}AFX_DATA

    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CMyQQDlg)
    public:
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    //}}AFX_VIRTUAL

// Implementation
protected:
    HICON m_hIcon;

    // Generated message map functions
    //{{AFX_MSG(CMyQQDlg)
    virtual BOOL OnInitDialog();
    afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
    afx_msg void OnPaint();
    afx_msg HCURSOR OnQueryDragIcon();
    afx_msg void OnButtonConnect();
    afx_msg void OnButtonDisconnect();
    afx_msg void OnButtonSendMsg();
    afx_msg void OnButtonSendFile();
    afx_msg void OnButtonClear();
    afx_msg void OnRadioTcp();
    afx_msg void OnRadioUdp();
    afx_msg void OnRadioServer();
    afx_msg void OnRadioClient();
    afx_msg void OnRadioBoth();
    afx_msg void OnButtonStopFile();
    afx_msg LRESULT OnKSend(WPARAM wParam,LPARAM lParam);//发送消息
    afx_msg void OnButtonCaputer();
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()

public:
    int SaveYouFile(CSocket &recSo,SOCKADDR_IN &client);
    int ReceiveFileMsg(CSocket & socket,SOCKADDR_IN &client);
    int GetIpAddress(const CString & sHostName,CString & sIpAddress);
    int GetLocalHostName(CString &sHostName);
    CString GetError(DWORD error);
    int    m_nSockType;    //连接类型
    int m_WorkType;        //工作方式 server0,client1,both2
    void AddMsgList(CString IP,CString str); //LISTBOX控件添加信息
    int m_client,m_server;
    CString m_fileName;
    bool FileWork,FileStop,StopServer;
    void SaveYouScreen(HBITMAP hBitmap,SOCKADDR_IN &client);
    HBITMAP CopyScreenToBitmap();
    char m_type;//接受类型/F-文件,C-抓平,D-关闭,M-消息
    int m_Potr;//当前使用端口
    int GetNamebyAddress(const CString &IpAddress,CString &sYouName);//获得对方计算机名称

};
struct FILEINFO
{
    int fileLength;
    char fileName[100];

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYQQDLG_H__F42FE5AC_E2CC_44AB_9D0A_748191BC989F__INCLUDED_)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
免费下载源码
Sponsored links

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
/MyQQ/ 0 Bytes 2003-04-15 11:18:02
/MyQQ/MyQQ.aps 36.94 KB 2003-04-15 11:00:48
/MyQQ/MyQQ.clw 2.10 KB 2003-04-15 11:14:48
/MyQQ/MyQQ.cpp 2.08 KB 2003-04-05 09:22:28
/MyQQ/MyQQ.dsp 4.02 KB 2003-04-09 18:54:52
/MyQQ/MyQQ.dsw 533 Bytes 2003-04-05 09:22:28
/MyQQ/MyQQ.h 1.27 KB 2003-04-05 09:22:28
/MyQQ/MyQQ.ncb 81.00 KB 2003-04-15 11:18:04
/MyQQ/MyQQ.opt 48.50 KB 2003-04-15 11:18:02
/MyQQ/MyQQ.plg 1.61 KB 2003-04-15 11:13:52
/MyQQ/MyQQ.rc 6.84 KB 2003-04-15 11:00:48
/MyQQ/MyQQDlg.cpp 30.29 KB 2003-04-15 10:59:52
/MyQQ/MyQQDlg.h 2.68 KB 2003-04-15 10:57:30
/MyQQ/ReadMe.txt 3.46 KB 2003-04-05 09:22:28
/MyQQ/Release/ 0 Bytes 2003-04-15 11:23:14
/MyQQ/res/ 0 Bytes 2003-04-10 14:49:28
/MyQQ/resource.h 1.47 KB 2003-04-10 19:07:06
/MyQQ/StdAfx.cpp 206 Bytes 2003-04-05 09:22:28
/MyQQ/StdAfx.h 1.08 KB 2003-04-05 09:22:28
/MyQQ/Release/MyQQ.exe 40.00 KB 2008-06-03 16:25:26
/MyQQ/res/MyQQ.ico 1.05 KB 2003-04-05 09:22:28
/MyQQ/res/MyQQ.rc2 396 Bytes 2003-04-05 09:22:28
Sponsored links
正在加载中……

Switch to the English version?

Yes
SourceCodeSky 英文版
No
SourceCodeSky 中文版

完善个人资料,获价值¥30元积分奖励!