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.

81 lines
2.1 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_msg void SetUserData(LPCTSTR szUserName, LPCTSTR szUserPassword);
  44. afx_msg void SetUrl(LPCTSTR szURL);
  45. //}}AFX_DISPATCH
  46. DECLARE_DISPATCH_MAP()
  47. // Event maps
  48. //{{AFX_EVENT(CRatCtrl)
  49. //}}AFX_EVENT
  50. DECLARE_EVENT_MAP()
  51. // Dispatch and event IDs
  52. public:
  53. enum {
  54. //{{AFX_DISP_ID(CRatCtrl)
  55. dispidSetAdminTarget = 1L,
  56. //}}AFX_DISP_ID
  57. };
  58. protected:
  59. BOOL m_fUpdateFont;
  60. CString m_szMachine;
  61. CString m_szMetaObject;
  62. CString m_szUserName;
  63. CStrPassword m_szUserPassword;
  64. CString m_szURL;
  65. // the accelerator table
  66. HACCEL m_hAccel;
  67. WORD m_cAccel;
  68. };