资源简介
仿QQ登陆聊天界面源码C++
有聊天功能 留言功能 登陆功能 用户注册功能 后台服务器 在线人数等功能

代码片段和文件信息
// AGREEDLG.cpp : implementation file
//
#include “stdafx.h“
#include “MyChat.h“
#include “AGREEDLG.h“
#include “AskDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAGREEDLG dialog
CAGREEDLG::CAGREEDLG(CClientSocket *p_SocketCWnd* pParent /*=NULL*/)
: CDialog(CAGREEDLG::IDD pParent)
{
ASSERT(p_Socket);
m_pSocket = p_Socket;
m_pSocket->agreeDlg=this;
//{{AFX_DATA_INIT(CAGREEDLG)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CAGREEDLG::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAGREEDLG)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAGREEDLG CDialog)
//{{AFX_MSG_MAP(CAGREEDLG)
ON_WM_CTLCOLOR()
ON_BN_CLICKED(IDC_BTN_AGREE OnBtnAgree)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAGREEDLG message handlers
BOOL CAGREEDLG::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_brushcolor.CreateSolidBrush(RGB(255247222));
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
HBRUSH CAGREEDLG::OnCtlColor(CDC* pDC CWnd* pWnd UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC pWnd nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor==CTLCOLOR_DLG)
return m_brushcolor;
if(pWnd->GetDlgCtrlID()==IDC_STATIC1)
{
pDC->SetBkMode(TRANSPARENT);
return m_brushcolor;
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
void CAGREEDLG::OnBtnAgree()
{
// TODO: Add your control notification handler code here
CDialog::OnOK();
CAskDlg* dlg;
dlg = new CAskDlg(m_pSocket);
dlg->DoModal();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 35056 2011-04-15 23:07 ChatSourceCode\ChatClient\0.bmp
文件 29048 2013-10-29 14:49 ChatSourceCode\ChatClient\2.bmp
文件 2060 2011-04-15 23:07 ChatSourceCode\ChatClient\AGREEDLG.cpp
文件 1414 2011-04-15 23:07 ChatSourceCode\ChatClient\AGREEDLG.h
文件 3540 2011-04-17 09:53 ChatSourceCode\ChatClient\AskDlg.cpp
文件 1451 2011-04-17 09:45 ChatSourceCode\ChatClient\AskDlg.h
文件 5021 2011-04-17 17:10 ChatSourceCode\ChatClient\ClientSocket.cpp
文件 1659 2011-04-16 14:52 ChatSourceCode\ChatClient\ClientSocket.h
文件 16817 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\AGREEDLG.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\AGREEDLG.sbr
文件 26128 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\AskDlg.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\AskDlg.sbr
文件 22787 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\ClientSocket.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\ClientSocket.sbr
文件 20609 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\Leave.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\Leave.sbr
文件 22684 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\LoginDlg.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\LoginDlg.sbr
文件 5293056 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.bsc
文件 475235 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.exe
文件 303528 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.ilk
文件 17713 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.obj
文件 7072780 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.pch
文件 467968 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.pdb
文件 276156 2013-10-29 14:50 ChatSourceCode\ChatClient\Debug\MyChat.res
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChat.sbr
文件 51567 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChatDlg.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\MyChatDlg.sbr
文件 36448 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\Private.obj
文件 0 2013-10-30 15:35 ChatSourceCode\ChatClient\Debug\Private.sbr
............此处省略112个文件信息
- 上一篇:在内存中将bmp转JPG
- 下一篇:C++程序设计--谭浩强完整版
相关资源
- 派克变换VC++源码(附文档)
- QR二维码C++源码 算法实现
- socket通讯c++源码(客户端+服务端)
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- 超级玛丽c++源码win32Linux平台
- 红警大战探宝外挂
- 网络游戏脱机外挂(辅助)C++源码(
- 雷霆战机 c++源码
- MFC 精仿QQ主界面无闪烁移动,抽屉
- celrityC/C++源码查看工具
- puma560的运动学正解和逆解的C++源码
- 网络调试助手C++源码(VS 2008开发)
- AES 加密 C++源码
- 哈夫曼压缩和解压c++源码
- 用MFC实现的简单qq聊天
- QQ可用 Directshow实现的虚拟摄像头win
- 科博达面试题及答案.rar
- 基于混沌算法的图像加密系统C++源码
- 学生成绩管理系统C++源码
- 网络拓扑发现算法c++源码
- C++编写的多线程C/S模式仿QQ软件
- C++ 排课程序源代码
- c++源代码 一款类似QQ聊天的IM聊天软件
- Matlab中峰值计算函数findpeaks()的c
- Linux+gladeGTK++C语言+mysql的模仿QQ聊天工
- jpeg jpg解码 C++
- 仿QQ通信系统
- c语言版的类似qq源码
- 任务栏托盘图标程序/MFC窗口定位/类似
- 大鱼吃小鱼游戏VC++源码
评论
共有 条评论