home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n10 / vb40.exe / SHELLOCX.EXE / SHELLPPG.CPP < prev    next >
C/C++ Source or Header  |  1995-10-01  |  2KB  |  76 lines

  1. // shellppg.cpp : Implementation of the CShellinkPropPage property page class.
  2.  
  3. #include "stdafx.h"
  4. #include "shellink.h"
  5. #include "shellppg.h"
  6.  
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char BASED_CODE THIS_FILE[] = __FILE__;
  10. #endif
  11.  
  12.  
  13. IMPLEMENT_DYNCREATE(CShellinkPropPage, COlePropertyPage)
  14.  
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Message map
  18.  
  19. BEGIN_MESSAGE_MAP(CShellinkPropPage, COlePropertyPage)
  20.     //{{AFX_MSG_MAP(CShellinkPropPage)
  21.     // NOTE - ClassWizard will add and remove message map entries
  22.     //    DO NOT EDIT what you see in these blocks of generated code !
  23.     //}}AFX_MSG_MAP
  24. END_MESSAGE_MAP()
  25.  
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // Initialize class factory and guid
  29.  
  30. IMPLEMENT_OLECREATE_EX(CShellinkPropPage, "SHELLINK.ShellinkPropPage.1",
  31.     0xfeae5ca4, 0x9e82, 0x11ce, 0x8d, 0x75, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0)
  32.  
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CShellinkPropPage::CShellinkPropPageFactory::UpdateRegistry -
  36. // Adds or removes system registry entries for CShellinkPropPage
  37.  
  38. BOOL CShellinkPropPage::CShellinkPropPageFactory::UpdateRegistry(BOOL bRegister)
  39. {
  40.     if (bRegister)
  41.         return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  42.             m_clsid, IDS_SHELLINK_PPG);
  43.     else
  44.         return AfxOleUnregisterClass(m_clsid, NULL);
  45. }
  46.  
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CShellinkPropPage::CShellinkPropPage - Constructor
  50.  
  51. CShellinkPropPage::CShellinkPropPage() :
  52.     COlePropertyPage(IDD, IDS_SHELLINK_PPG_CAPTION)
  53. {
  54.     //{{AFX_DATA_INIT(CShellinkPropPage)
  55.     // NOTE: ClassWizard will add member initialization here
  56.     //    DO NOT EDIT what you see in these blocks of generated code !
  57.     //}}AFX_DATA_INIT
  58. }
  59.  
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CShellinkPropPage::DoDataExchange - Moves data between page and properties
  63.  
  64. void CShellinkPropPage::DoDataExchange(CDataExchange* pDX)
  65. {
  66.     //{{AFX_DATA_MAP(CShellinkPropPage)
  67.     // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  68.     //    DO NOT EDIT what you see in these blocks of generated code !
  69.     //}}AFX_DATA_MAP
  70.     DDP_PostProcessing(pDX);
  71. }
  72.  
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CShellinkPropPage message handlers
  76.