home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch33 / group / groupvw.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-09  |  1.4 KB  |  70 lines

  1. // groupvw.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "group.h"
  6. #include "groupvw.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CGroupView
  15.  
  16. IMPLEMENT_DYNCREATE(CGroupView, CFormView)
  17.  
  18. CGroupView::CGroupView()
  19.     : CFormView(CGroupView::IDD)
  20. {
  21.     //{{AFX_DATA_INIT(CGroupView)
  22.     m_grp2 = NULL;
  23.     m_grp1 = NULL;
  24.     //}}AFX_DATA_INIT
  25. }
  26.  
  27. CGroupView::~CGroupView()
  28. {
  29. }
  30.  
  31. void CGroupView::DoDataExchange(CDataExchange* pDX)
  32. {
  33.     CFormView::DoDataExchange(pDX);
  34.     //{{AFX_DATA_MAP(CGroupView)
  35.     DDX_VBControl(pDX, IDC_GROUPPUSH3D2, m_grp2);
  36.     DDX_VBControl(pDX, IDC_GROUPPUSH3D1, m_grp1);
  37.     //}}AFX_DATA_MAP
  38. }
  39.  
  40.  
  41. BEGIN_MESSAGE_MAP(CGroupView, CFormView)
  42.     //{{AFX_MSG_MAP(CGroupView)
  43.         // NOTE - the ClassWizard will add and remove mapping macros here.
  44.     //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46.  
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CGroupView message handlers
  50.  
  51. //////////////////////
  52. // MY CODE STARTS HERE
  53. //////////////////////
  54.  
  55. void CGroupView::OnInitialUpdate()
  56. {
  57.  
  58.   // Call the base class function.
  59.   CFormView::OnInitialUpdate();
  60.  
  61.   // Set the MousePointer property of the
  62.   // left button to 2-Cross
  63.   m_grp1->SetNumProperty("MousePointer", 2);
  64.  
  65. }
  66.  
  67. ////////////////////
  68. // MY CODE ENDS HERE
  69. ////////////////////
  70.