www.gusucode.com > 一个VC++登录窗口,类似QQ登录界面源码程序 > 一个VC++登录窗口,类似QQ登录界面/仿QQ登陆界面源代码/仿QQ登陆界面源代码/QQView.cpp
// QQView.cpp : implementation of the CQQView class // Download by http://www.codesc.net #include "stdafx.h" #include "QQ.h" #include "QQDoc.h" #include "QQView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CQQView IMPLEMENT_DYNCREATE(CQQView, CView) BEGIN_MESSAGE_MAP(CQQView, CView) //{{AFX_MSG_MAP(CQQView) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP // Standard printing commands ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CQQView construction/destruction CQQView::CQQView() { // TODO: add construction code here } CQQView::~CQQView() { } BOOL CQQView::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CQQView drawing void CQQView::OnDraw(CDC* pDC) { CQQDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CQQView printing BOOL CQQView::OnPreparePrinting(CPrintInfo* pInfo) { // default preparation return DoPreparePrinting(pInfo); } void CQQView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add extra initialization before printing } void CQQView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/) { // TODO: add cleanup after printing } ///////////////////////////////////////////////////////////////////////////// // CQQView diagnostics #ifdef _DEBUG void CQQView::AssertValid() const { CView::AssertValid(); } void CQQView::Dump(CDumpContext& dc) const { CView::Dump(dc); } CQQDoc* CQQView::GetDocument() // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CQQDoc))); return (CQQDoc*)m_pDocument; } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CQQView message handlers