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.

76 lines
1.9 KiB

  1. // RatCtl.h : Declaration of the CRatCtrl OLE control class.
  2. /////////////////////////////////////////////////////////////////////////////
  3. // CRatCtrl : See RatCtl.cpp for implementation.
  4. class CRatCtrl : public COleControl
  5. {
  6. DECLARE_DYNCREATE(CRatCtrl)
  7. // Constructor
  8. public:
  9. CRatCtrl();
  10. // Overrides
  11. // ClassWizard generated virtual function overrides
  12. //{{AFX_VIRTUAL(CRatCtrl)
  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 OnGetControlInfo(LPCONTROLINFO pControlInfo);
  20. virtual void OnTextChanged();
  21. virtual void OnMnemonic(LPMSG pMsg);
  22. virtual void OnAmbientPropertyChange(DISPID dispid);
  23. virtual void OnKeyUpEvent(USHORT nChar, USHORT nShiftState);
  24. //}}AFX_VIRTUAL
  25. // Implementation
  26. protected:
  27. ~CRatCtrl();
  28. DECLARE_OLECREATE_EX(CRatCtrl) // Class factory and guid
  29. DECLARE_OLETYPELIB(CRatCtrl) // GetTypeInfo
  30. DECLARE_PROPPAGEIDS(CRatCtrl) // Property page IDs
  31. DECLARE_OLECTLTYPE(CRatCtrl) // 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(CRatCtrl)
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. // Dispatch maps
  41. //{{AFX_DISPATCH(CRatCtrl)
  42. afx_msg void SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget);
  43. //}}AFX_DISPATCH
  44. DECLARE_DISPATCH_MAP()
  45. // Event maps
  46. //{{AFX_EVENT(CRatCtrl)
  47. //}}AFX_EVENT
  48. DECLARE_EVENT_MAP()
  49. // Dispatch and event IDs
  50. public:
  51. enum {
  52. //{{AFX_DISP_ID(CRatCtrl)
  53. dispidSetAdminTarget = 1L,
  54. //}}AFX_DISP_ID
  55. };
  56. protected:
  57. BOOL m_fUpdateFont;
  58. CString m_szMachine;
  59. CString m_szMetaObject;
  60. // the accelerator table
  61. HACCEL m_hAccel;
  62. WORD m_cAccel;
  63. };