home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / drawpic / drawpicp.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  3KB  |  87 lines

  1. // DrawPicP.cpp : Implementation of the CDrawPicPropPage property page class.
  2.  
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "DrawPic.h"
  15. #include "DrawPicP.h"
  16.  
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23.  
  24. IMPLEMENT_DYNCREATE(CDrawPicPropPage, COlePropertyPage)
  25.  
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // Message map
  29.  
  30. BEGIN_MESSAGE_MAP(CDrawPicPropPage, COlePropertyPage)
  31.     //{{AFX_MSG_MAP(CDrawPicPropPage)
  32.     // NOTE - ClassWizard will add and remove message map entries
  33.     //    DO NOT EDIT what you see in these blocks of generated code !
  34.     //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36.  
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // Initialize class factory and guid
  40.  
  41. IMPLEMENT_OLECREATE_EX(CDrawPicPropPage, "DRAWPIC.DrawPicPropPage.1",
  42.     0x57f5a424, 0xa324, 0x11cf, 0xb4, 0xa4, 0x44, 0x45, 0x53, 0x54, 0, 0)
  43.  
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CDrawPicPropPage::CDrawPicPropPageFactory::UpdateRegistry -
  47. // Adds or removes system registry entries for CDrawPicPropPage
  48.  
  49. BOOL CDrawPicPropPage::CDrawPicPropPageFactory::UpdateRegistry(BOOL bRegister)
  50. {
  51.     if (bRegister)
  52.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  53.             m_clsid, IDS_DRAWPIC_PPG);
  54.     else
  55.         return AfxOleUnregisterClass(m_clsid, NULL);
  56. }
  57.  
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CDrawPicPropPage::CDrawPicPropPage - Constructor
  61.  
  62. CDrawPicPropPage::CDrawPicPropPage() :
  63.     COlePropertyPage(IDD, IDS_DRAWPIC_PPG_CAPTION)
  64. {
  65.     //{{AFX_DATA_INIT(CDrawPicPropPage)
  66.     // NOTE: ClassWizard will add member initialization here
  67.     //    DO NOT EDIT what you see in these blocks of generated code !
  68.     //}}AFX_DATA_INIT
  69. }
  70.  
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73. // CDrawPicPropPage::DoDataExchange - Moves data between page and properties
  74.  
  75. void CDrawPicPropPage::DoDataExchange(CDataExchange* pDX)
  76. {
  77.     //{{AFX_DATA_MAP(CDrawPicPropPage)
  78.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  79.     //    DO NOT EDIT what you see in these blocks of generated code !
  80.     //}}AFX_DATA_MAP
  81.     DDP_PostProcessing(pDX);
  82. }
  83.  
  84.  
  85. /////////////////////////////////////////////////////////////////////////////
  86. // CDrawPicPropPage message handlers
  87.