www.pudn.com > agentnet.zip > SendGeneralMsgDlg.cpp
// SendGeneralMsgDlg.cpp : implementation file
//
#include "stdafx.h"
#include "AgentNetClient.h"
#include "SendGeneralMsgDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSendGeneralMsgDlg dialog
CSendGeneralMsgDlg::CSendGeneralMsgDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSendGeneralMsgDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CSendGeneralMsgDlg)
m_strText = _T("");
//}}AFX_DATA_INIT
}
void CSendGeneralMsgDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSendGeneralMsgDlg)
DDX_Text(pDX, IDC_EDIT, m_strText);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSendGeneralMsgDlg, CDialog)
//{{AFX_MSG_MAP(CSendGeneralMsgDlg)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSendGeneralMsgDlg message handlers
int CSendGeneralMsgDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
//改变对话框标题为用户名
SetWindowText("发送消息给 : "+m_strToUserName);
return 0;
}