资源简介

仿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个文件信息

评论

共有 条评论