Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.7 KiB

  1. //
  2. // MODULE: TSHOOTPPG.CPP
  3. //
  4. // PURPOSE: Implementation of the CTSHOOTPropPage property page class.
  5. //
  6. // PROJECT: Generic Troubleshooter DLL for Microsoft AnswerPoint
  7. //
  8. // COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
  9. //
  10. // AUTHOR: Roman Mach
  11. //
  12. // ORIGINAL DATE: 8/7/97
  13. //
  14. // NOTES:
  15. // 1.
  16. //
  17. // Version Date By Comments
  18. //--------------------------------------------------------------------
  19. // V0.2 8/7/97 RM Local Version for Memphis
  20. // V0.3 04/09/98 JM/OK+ Local Version for NT5
  21. //
  22. #include "stdafx.h"
  23. #include "TSHOOT.h"
  24. #include "TSHOOTPpg.h"
  25. #ifdef _DEBUG
  26. #define new DEBUG_NEW
  27. #undef THIS_FILE
  28. static char THIS_FILE[] = __FILE__;
  29. #endif
  30. IMPLEMENT_DYNCREATE(CTSHOOTPropPage, COlePropertyPage)
  31. /////////////////////////////////////////////////////////////////////////////
  32. // Message map
  33. BEGIN_MESSAGE_MAP(CTSHOOTPropPage, COlePropertyPage)
  34. //{{AFX_MSG_MAP(CTSHOOTPropPage)
  35. // NOTE - ClassWizard will add and remove message map entries
  36. // DO NOT EDIT what you see in these blocks of generated code !
  37. //}}AFX_MSG_MAP
  38. END_MESSAGE_MAP()
  39. /////////////////////////////////////////////////////////////////////////////
  40. // Initialize class factory and guid
  41. IMPLEMENT_OLECREATE_EX(CTSHOOTPropPage, "TSHOOT.TSHOOTPropPage.1",
  42. 0x4b106875, 0xdd36, 0x11d0, 0x8b, 0x44, 0, 0xa0, 0x24, 0xdd, 0x9e, 0xff)
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CTSHOOTPropPage::CTSHOOTPropPageFactory::UpdateRegistry -
  45. // Adds or removes system registry entries for CTSHOOTPropPage
  46. BOOL CTSHOOTPropPage::CTSHOOTPropPageFactory::UpdateRegistry(BOOL bRegister)
  47. {
  48. if (bRegister)
  49. return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
  50. m_clsid, IDS_TSHOOT_PPG);
  51. else
  52. return AfxOleUnregisterClass(m_clsid, NULL);
  53. }
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CTSHOOTPropPage::CTSHOOTPropPage - Constructor
  56. CTSHOOTPropPage::CTSHOOTPropPage() :
  57. COlePropertyPage(IDD, IDS_TSHOOT_PPG_CAPTION)
  58. {
  59. //{{AFX_DATA_INIT(CTSHOOTPropPage)
  60. // NOTE: ClassWizard will add member initialization here
  61. // DO NOT EDIT what you see in these blocks of generated code !
  62. //}}AFX_DATA_INIT
  63. }
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CTSHOOTPropPage::DoDataExchange - Moves data between page and properties
  66. void CTSHOOTPropPage::DoDataExchange(CDataExchange* pDX)
  67. {
  68. //{{AFX_DATA_MAP(CTSHOOTPropPage)
  69. // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
  70. // DO NOT EDIT what you see in these blocks of generated code !
  71. //}}AFX_DATA_MAP
  72. DDP_PostProcessing(pDX);
  73. }
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CTSHOOTPropPage message handlers