ChatRight.cpp
资源名称:MSN.rar [点击查看]
上传用户:seeker_wen
上传日期:2016-05-23
资源大小:2084k
文件大小:2k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- // ChatRight.cpp : implementation file
- //
- #include "stdafx.h"
- #include "MSN.h"
- #include "ChatRight.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CChatRight dialog
- CChatRight::CChatRight(CWnd* pParent /*=NULL*/)
- : CDialog(CChatRight::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CChatRight)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CChatRight::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CChatRight)
- DDX_Control(pDX, IDC_STATICM, m_faceMe);
- DDX_Control(pDX, IDC_STATIC_F, m_faceFriend);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CChatRight, CDialog)
- //{{AFX_MSG_MAP(CChatRight)
- ON_WM_SIZE()
- ON_WM_ERASEBKGND()
- ON_WM_NCCREATE()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CChatRight message handlers
- void CChatRight::OnSize(UINT nType, int cx, int cy)
- {
- CDialog::OnSize(nType, cx, cy);
- if (m_faceMe.m_hWnd==NULL)
- return;
- m_faceMe.MoveWindow((cx-120)/2,cy-120-5,120,120);
- m_faceFriend.MoveWindow((cx-120)/2, 0,120,120);
- }
- BOOL CChatRight::OnEraseBkgnd(CDC* pDC)
- {
- // TODO: Add your message handler code here and/or call default
- //return TRUE;
- return CDialog::OnEraseBkgnd(pDC);
- }
- BOOL CChatRight::OnNcCreate(LPCREATESTRUCT lpCreateStruct)
- {
- if (!CDialog::OnNcCreate(lpCreateStruct))
- return FALSE;
- SetWindowSkinResID(m_hWnd, 1000);
- return TRUE;
- }