Activate the Timer operation |
Resume :
Details ...
|
#if !defined(AFX_BIOGRAPHY_H__3265EB26_1EAB_11D7_BFCA_FBE81CB16F4A__INCLUDED_) #define AFX_BIOGRAPHY_H__3265EB26_1EAB_11D7_BFCA_FBE81CB16F4A__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Biography.h : header file // ///////////////////////////////////////////////////////////////////////////// // CBiography dialog class CBiography : public CDialog { // Construction public: CBiography(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CBiography) enum { IDD = IDD_BIOGRAPHY }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBiography) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CBiography) // NOTE: the ClassWizard will add member functions here //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BIOGRAPHY_H__3265EB26_1EAB_11D7_BFCA_FBE81CB16F4A__INCLUDED_) |
-
New, Biography.cpp file:
// Biography.cpp :
implementation file // #include "stdafx.h" #include "TestVC0.h" #include "Biography.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CBiography dialog CBiography::CBiography(CWnd* pParent /*=NULL*/) : CDialog(CBiography::IDD, pParent) { //{{AFX_DATA_INIT(CBiography) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CBiography::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CBiography) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CBiography, CDialog) //{{AFX_MSG_MAP(CBiography) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CBiography message handlers |
|
ClassWizard makes changes to Biography.h
and Biography.cpp files after
you’ve mapped the controls to a member variable.
Examine these changes.
- Biography.h file: - the new Text Code is red
#if !defined(AFX_BIOGRAPHY_H__3265EB26_1EAB_11D7_BFCA_FBE81CB16F4A__INCLUDED_) #define AFX_BIOGRAPHY_H__3265EB26_1EAB_11D7_BFCA_FBE81CB16F4A__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Biography.h : header file // ///////////////////////////////////////////////////////////////////////////// // CBiography dialog class CBiography : public CDialog { // Construction public: CBiography(CWnd* pParent = NULL); // standard constructor // Dialog Data //{{AFX_DATA(CBiography) enum { IDD = IDD_BIOGRAPHY }; CStatic m_bitmap; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBiography) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CBiography) // NOTE: the ClassWizard will add member functions here //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BIOGRAPHY_H__3265EB26_1EAB_11D7_BFCA_FBE81CB16F4A__INCLUDED_) |
-
Biography.cpp file: - the new Text Code is red
// Biography.cpp :
implementation file // #include "stdafx.h" #include "TestVC0.h" #include "Biography.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CBiography dialog CBiography::CBiography(CWnd* pParent /*=NULL*/) : CDialog(CBiography::IDD, pParent) { //{{AFX_DATA_INIT(CBiography) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CBiography::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CBiography) DDX_Control(pDX, IDC_STATICBITMAP, m_bitmap); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CBiography, CDialog) //{{AFX_MSG_MAP(CBiography) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CBiography message handlers |
|