Leaked source code of windows server 2003
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.

83 lines
2.4 KiB

  1. #if !defined(AFX_CERTWIZCTL_H__D4BE863F_0C85_11D2_91B1_00C04F8C8761__INCLUDED_)
  2. #define AFX_CERTWIZCTL_H__D4BE863F_0C85_11D2_91B1_00C04F8C8761__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // CertWizCtl.h : Declaration of the CCertWizCtrl ActiveX Control class.
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CCertWizCtrl : See CertWizCtl.cpp for implementation.
  9. class CCertWizCtrl : public COleControl
  10. {
  11. DECLARE_DYNCREATE(CCertWizCtrl)
  12. // Constructor
  13. public:
  14. CCertWizCtrl();
  15. // Overrides
  16. // ClassWizard generated virtual function overrides
  17. //{{AFX_VIRTUAL(CCertWizCtrl)
  18. public:
  19. virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  20. virtual void DoPropExchange(CPropExchange* pPX);
  21. virtual void OnResetState();
  22. virtual DWORD GetControlFlags();
  23. virtual void OnClick(USHORT iButton);
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. protected:
  27. ~CCertWizCtrl();
  28. DECLARE_OLECREATE_EX(CCertWizCtrl) // Class factory and guid
  29. DECLARE_OLETYPELIB(CCertWizCtrl) // GetTypeInfo
  30. // DECLARE_PROPPAGEIDS(CCertWizCtrl) // Property page IDs
  31. DECLARE_OLECTLTYPE(CCertWizCtrl) // Type name and misc status
  32. // Subclassed control support
  33. BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. BOOL IsSubclassedControl();
  35. LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
  36. // Message maps
  37. //{{AFX_MSG(CCertWizCtrl)
  38. // NOTE - ClassWizard will add and remove member functions here.
  39. // DO NOT EDIT what you see in these blocks of generated code !
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. // Dispatch maps
  43. //{{AFX_DISPATCH(CCertWizCtrl)
  44. afx_msg void SetMachineName(LPCTSTR MachineName);
  45. afx_msg void SetServerInstance(LPCTSTR InstanceName);
  46. //}}AFX_DISPATCH
  47. DECLARE_DISPATCH_MAP()
  48. // Event maps
  49. //{{AFX_EVENT(CCertWizCtrl)
  50. //}}AFX_EVENT
  51. DECLARE_EVENT_MAP()
  52. // Dispatch and event IDs
  53. public:
  54. enum {
  55. //{{AFX_DISP_ID(CCertWizCtrl)
  56. dispidSetMachineName = 1L,
  57. dispidSetServerInstance = 2L,
  58. //}}AFX_DISP_ID
  59. };
  60. // This project will build only for Unicode
  61. #ifdef _UNICODE
  62. protected:
  63. CString m_MachineName, m_InstanceName;
  64. #endif
  65. };
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_CERTWIZCTL_H__D4BE863F_0C85_11D2_91B1_00C04F8C8761__INCLUDED)