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.

91 lines
2.5 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_msg void SetUserData(LPCTSTR szName, LPCTSTR szPassword);
  47. //}}AFX_DISPATCH
  48. DECLARE_DISPATCH_MAP()
  49. // Event maps
  50. //{{AFX_EVENT(CLogUICtrl)
  51. //}}AFX_EVENT
  52. DECLARE_EVENT_MAP()
  53. // Dispatch and event IDs
  54. public:
  55. enum {
  56. //{{AFX_DISP_ID(CLogUICtrl)
  57. dispidSetAdminTarget = 1L,
  58. dispidApplyLogSelection = 2L,
  59. dispidSetComboBox = 3L,
  60. dispidTerminate = 4L,
  61. dispidSetUserData = 5L,
  62. //}}AFX_DISP_ID
  63. };
  64. protected:
  65. void ActivateLogProperties(REFIID clsidUI);
  66. BOOL GetSelectedStringIID( CString &szIID );
  67. BOOL SetAccelTable( LPCTSTR pszCaption );
  68. BOOL m_fUpdateFont;
  69. CString m_szMachine;
  70. CString m_szMetaObject;
  71. CString m_szUserName;
  72. CStrPassword m_szPassword;
  73. BOOL m_fComboInit;
  74. CComboBox m_comboBox;
  75. // the accelerator table
  76. HACCEL m_hAccel;
  77. WORD m_cAccel;
  78. };