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

MyQQDlg.cpp ( 文件浏览 )

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

#include "stdafx.h"
#include "MyQQ.h"
#include "MyQQDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#include <dlgs.h>
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
    CAboutDlg();
    
    // Dialog Data
    //{{AFX_DATA(CAboutDlg)
    enum { IDD = IDD_ABOUTBOX };
    //}}AFX_DATA
    
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CAboutDlg)
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    //}}AFX_VIRTUAL
    
    // Implementation
protected:
    //{{AFX_MSG(CAboutDlg)
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
    //{{AFX_DATA_INIT(CAboutDlg)
    //}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CAboutDlg)
    //}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CMyQQDlg dialog



#define PORT        34567
#define FLAG        2
#define SIZEFILE    1024

const int SOCK_TCP    = 0;    //TCP模式
const int SOCK_UDP  = 1;    //UPD模式

CWinThread    *pThreadSendFile;    //发送文件线程-->_SendFileThread
CWinThread    *pThreadSendMsg;        //发送消息线程
CWinThread    *pThreadLisen;        //监听线程-->_ListenTcpThread
CWinThread    *pReceiveThread;        //接受线程-->_ReceiveThread
CWinThread  *pThreadCaputre;        //抓取屏幕线程


//////////////////////////////////////////////////////////////////////////////


CMyQQDlg::CMyQQDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyQQDlg::IDD, pParent)
{
    //{{AFX_DATA_INIT(CMyQQDlg)
    m_MsgSend = _T("");
    //}}AFX_DATA_INIT
    // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
    m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
    m_nSockType=0;//TCP
    m_WorkType=2;//两者
    m_client=0;
    m_server=0;
    FileWork=false;
    FileStop=false;
    StopServer=false;
}

void CMyQQDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CMyQQDlg)
    DDX_Control(pDX, IDC_PROGRESS_SEND_FILE, m_Progress);
    DDX_Control(pDX, IDC_LIST_BOX_ADDMSG, m_AddMsgLIst);
    DDX_Control(pDX, IDC_IPADDRESS, m_You_IP);
    DDX_Text(pDX, IDC_EDIT_SENDMSG, m_MsgSend);
    //}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CMyQQDlg, CDialog)
//{{AFX_MSG_MAP(CMyQQDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON_CONNECT, OnButtonConnect)
ON_BN_CLICKED(IDC_BUTTON_DISCONNECT, OnButtonDisconnect)
ON_BN_CLICKED(IDC_BUTTON_SEND_MSG, OnButtonSendMsg)
ON_BN_CLICKED(IDC_BUTTON_SEND_FILE, OnButtonSendFile)
ON_BN_CLICKED(IDC_BUTTON_CLEAR, OnButtonClear)
ON_BN_CLICKED(IDC_RADIO_TCP, OnRadioTcp)
ON_BN_CLICKED(IDC_RADIO_UDP, OnRadioUd[!==More==!]			
...
展开> <收缩

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

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元积分奖励!