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.

82 lines
2.3 KiB

  1. // CertCtl.h : Declaration of the CCertmapCtrl OLE control class.
  2. /////////////////////////////////////////////////////////////////////////////
  3. // CCertmapCtrl : See CertCtl.cpp for implementation.
  4. class CCertmapCtrl : public COleControl
  5. {
  6. DECLARE_DYNCREATE(CCertmapCtrl)
  7. // Constructor
  8. public:
  9. CCertmapCtrl();
  10. // Overrides
  11. // ClassWizard generated virtual function overrides
  12. //{{AFX_VIRTUAL(CCertmapCtrl)
  13. public:
  14. virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  15. virtual void DoPropExchange(CPropExchange* pPX);
  16. virtual void OnResetState();
  17. virtual void OnClick(USHORT iButton);
  18. virtual void OnFontChanged();
  19. virtual void OnAmbientPropertyChange(DISPID dispid);
  20. virtual void OnGetControlInfo(LPCONTROLINFO pControlInfo);
  21. virtual void OnKeyUpEvent(USHORT nChar, USHORT nShiftState);
  22. virtual void OnMnemonic(LPMSG pMsg);
  23. virtual void OnTextChanged();
  24. protected:
  25. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  26. //}}AFX_VIRTUAL
  27. // Implementation
  28. protected:
  29. ~CCertmapCtrl();
  30. // the whole point of the control
  31. void RunMappingDialog();
  32. DECLARE_OLECREATE_EX(CCertmapCtrl) // Class factory and guid
  33. DECLARE_OLETYPELIB(CCertmapCtrl) // GetTypeInfo
  34. DECLARE_PROPPAGEIDS(CCertmapCtrl) // Property page IDs
  35. DECLARE_OLECTLTYPE(CCertmapCtrl) // Type name and misc status
  36. // Message maps
  37. //{{AFX_MSG(CCertmapCtrl)
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. // Dispatch maps
  41. //{{AFX_DISPATCH(CCertmapCtrl)
  42. afx_msg void SetServerInstance(LPCTSTR szServerInstance);
  43. afx_msg void SetMachineName(LPCTSTR szMachineName);
  44. //}}AFX_DISPATCH
  45. DECLARE_DISPATCH_MAP()
  46. // Event maps
  47. //{{AFX_EVENT(CCertmapCtrl)
  48. //}}AFX_EVENT
  49. DECLARE_EVENT_MAP()
  50. // Subclassed control support
  51. BOOL IsSubclassedControl();
  52. LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
  53. // Dispatch and event IDs
  54. public:
  55. enum {
  56. //{{AFX_DISP_ID(CCertmapCtrl)
  57. dispidSetServerInstance = 1L,
  58. dispidSetMachineName = 2L,
  59. //}}AFX_DISP_ID
  60. };
  61. CString m_szServerInstance;
  62. CString m_szMachineName;
  63. BOOL m_fUpdateFont;
  64. // the accelerator table
  65. HACCEL m_hAccel;
  66. WORD m_cAccel;
  67. };