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.

95 lines
2.4 KiB

  1. // LogUICtl.h : Declaration of the CLogUICtrl OLE control class.
  2. /////////////////////////////////////////////////////////////////////////////
  3. // CLogUICtrl : See LogUICtl.cpp for implementation.
  4. class CLogUICtrl : public COleControl
  5. {
  6. DECLARE_DYNCREATE(CLogUICtrl)
  7. // Constructor
  8. public:
  9. CLogUICtrl();
  10. // Overrides
  11. // ClassWizard generated virtual function overrides
  12. //{{AFX_VIRTUAL(CLogUICtrl)
  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. //}}AFX_VIRTUAL
  25. // Implementation
  26. protected:
  27. ~CLogUICtrl();
  28. DECLARE_OLECREATE_EX(CLogUICtrl) // Class factory and guid
  29. DECLARE_OLETYPELIB(CLogUICtrl) // GetTypeInfo
  30. DECLARE_PROPPAGEIDS(CLogUICtrl) // Property page IDs
  31. DECLARE_OLECTLTYPE(CLogUICtrl) // 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(CLogUICtrl)
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. // Dispatch maps
  41. //{{AFX_DISPATCH(CLogUICtrl)
  42. afx_msg void SetAdminTarget(LPCTSTR szMachineName, LPCTSTR szMetaTarget);
  43. afx_msg void ApplyLogSelection();
  44. afx_msg void SetComboBox(HWND hComboBox);
  45. afx_msg void Terminate();
  46. //}}AFX_DISPATCH
  47. DECLARE_DISPATCH_MAP()
  48. // Event maps
  49. //{{AFX_EVENT(CLogUICtrl)
  50. //}}AFX_EVENT
  51. DECLARE_EVENT_MAP()
  52. // Dispatch and event IDs
  53. public:
  54. enum {
  55. //{{AFX_DISP_ID(CLogUICtrl)
  56. dispidSetAdminTarget = 1L,
  57. dispidApplyLogSelection = 2L,
  58. dispidSetComboBox = 3L,
  59. dispidTerminate = 4L,
  60. //}}AFX_DISP_ID
  61. };
  62. protected:
  63. void ActivateLogProperties( OLECHAR* pocMachineName, REFIID clsidUI );
  64. BOOL GetSelectedStringIID( CString &szIID );
  65. BOOL GetServerDirectory( CString &sz );
  66. // BOOL RegisterMSLogUI();
  67. BOOL SetAccelTable( LPCTSTR pszCaption );
  68. BOOL m_fUpdateFont;
  69. CString m_szMachine;
  70. CString m_szMetaObject;
  71. BOOL m_fComboInit;
  72. CComboBox m_comboBox;
  73. // the accelerator table
  74. HACCEL m_hAccel;
  75. WORD m_cAccel;
  76. };