资源简介
仿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++程序设计--谭浩强完整版
相关资源
- MFC richedit可进行插入图片、表情,有
- Nehe的OpenGL教程电子书(chm格式)中文
- MFC实现qq聊天
- 词法分析C++源码
- 自制杀毒软件C++源码
- 大漠7.1933VIP所有工具+VC++新手注册安装
- 车牌识别c++源码
- QQ麻将游戏c++源代码.rar
- RBF神经网络C++源码
- 图书管理系统软件设计C++源码
- CEC2017测试函数C++源码、和文献介绍
- 简易QQ mfc实现源码(学习使用的简单
- QT实现的聊天界面,好友列表,支持文
- 人工神经网络之BP网络模拟三角函数
- 模拟QQ课程设计
- mfc写的仿QQ的聊天软件
- 基于混沌算法的图像加密系统C++源码
- QQ聊天工具实现,包含客户端服务器程
- 八数码问题数字华容道,九宫格深度
- 中国象棋引擎ZWM 版本0.2.(VC++源码)
- 仿QQ迷你首页迷你资讯MFC,VC++源代码
- 7-ZIP源码(一款压缩软件的C++源码压缩
- 傅里叶变换研究|C++源码|带通滤波器
- ECDH加密算法 c语言版
- 计算器 C++源码实现+-*\\()
- C++编程100例
- 如何使用GDI+制作圆形图片(类似QQ圆
- qt c++ webQQ 源码
- 多人对战连连看游戏VC++源码
- 通过smart获取硬盘序列号等信息的C+
评论
共有 条评论