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.

84 lines
2.2 KiB

  1. // AppsCtl.h : Declaration of the CAppsCtrl OLE control class.
  2. /////////////////////////////////////////////////////////////////////////////
  3. // CAppsCtrl : See AppsCtl.cpp for implementation.
  4. class CAppsCtrl : public COleControl
  5. {
  6. DECLARE_DYNCREATE(CAppsCtrl)
  7. // Constructor
  8. public:
  9. CAppsCtrl();
  10. // Overrides
  11. // ClassWizard generated virtual function overrides
  12. //{{AFX_VIRTUAL(CAppsCtrl)
  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. ~CAppsCtrl();
  30. DECLARE_OLECREATE_EX(CAppsCtrl) // Class factory and guid
  31. DECLARE_OLETYPELIB(CAppsCtrl) // GetTypeInfo
  32. DECLARE_PROPPAGEIDS(CAppsCtrl) // Property page IDs
  33. DECLARE_OLECTLTYPE(CAppsCtrl) // Type name and misc status
  34. // Subclassed control support
  35. BOOL IsSubclassedControl();
  36. LRESULT OnOcmCommand(WPARAM wParam, LPARAM lParam);
  37. // Message maps
  38. //{{AFX_MSG(CAppsCtrl)
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. // Dispatch maps
  42. //{{AFX_DISPATCH(CAppsCtrl)
  43. afx_msg void DeleteParameters();
  44. afx_msg void SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget, BOOL fLocalMachine);
  45. afx_msg void SetShowProcOptions(BOOL fShowProcOptions);
  46. afx_msg void DeleteProcParameters();
  47. //}}AFX_DISPATCH
  48. DECLARE_DISPATCH_MAP()
  49. // Event maps
  50. //{{AFX_EVENT(CAppsCtrl)
  51. //}}AFX_EVENT
  52. DECLARE_EVENT_MAP()
  53. // Dispatch and event IDs
  54. public:
  55. enum {
  56. //{{AFX_DISP_ID(CAppsCtrl)
  57. dispidDeleteParameters = 1L,
  58. dispidSetAdminTarget = 2L,
  59. dispidSetShowProcOptions = 3L,
  60. dispidDeleteProcParameters = 4L,
  61. //}}AFX_DISP_ID
  62. };
  63. protected:
  64. BOOL m_fUpdateFont;
  65. CString m_szMachine;
  66. CString m_szMetaObject;
  67. BOOL m_fLocalMachine;
  68. BOOL m_fShowProcOptions;
  69. // the accelerator table
  70. HACCEL m_hAccel;
  71. WORD m_cAccel;
  72. };