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.

71 lines
2.0 KiB

  1. // DialErr.h : Declaration of the CDialErr
  2. #ifndef __DIALERR_H_
  3. #define __DIALERR_H_
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CDialErr
  6. class ATL_NO_VTABLE CDialErr :
  7. public CComObjectRootEx<CComSingleThreadModel>,
  8. public CComCoClass<CDialErr,&CLSID_DialErr>,
  9. public CComControl<CDialErr>,
  10. public IDispatchImpl<IDialErr, &IID_IDialErr, &LIBID_ICWHELPLib>,
  11. public IPersistStreamInitImpl<CDialErr>,
  12. public IOleControlImpl<CDialErr>,
  13. public IOleObjectImpl<CDialErr>,
  14. public IOleInPlaceActiveObjectImpl<CDialErr>,
  15. public IViewObjectExImpl<CDialErr>,
  16. public IOleInPlaceObjectWindowlessImpl<CDialErr>
  17. {
  18. public:
  19. CDialErr()
  20. {
  21. }
  22. DECLARE_REGISTRY_RESOURCEID(IDR_DIALERR)
  23. BEGIN_COM_MAP(CDialErr)
  24. COM_INTERFACE_ENTRY(IDispatch)
  25. COM_INTERFACE_ENTRY(IDialErr)
  26. COM_INTERFACE_ENTRY_IMPL_IID(IID_IViewObject, IViewObjectEx)
  27. COM_INTERFACE_ENTRY_IMPL_IID(IID_IViewObject2, IViewObjectEx)
  28. COM_INTERFACE_ENTRY_IMPL(IViewObjectEx)
  29. COM_INTERFACE_ENTRY_IMPL_IID(IID_IOleWindow, IOleInPlaceObjectWindowless)
  30. COM_INTERFACE_ENTRY_IMPL_IID(IID_IOleInPlaceObject, IOleInPlaceObjectWindowless)
  31. COM_INTERFACE_ENTRY_IMPL(IOleInPlaceObjectWindowless)
  32. COM_INTERFACE_ENTRY_IMPL(IOleInPlaceActiveObject)
  33. COM_INTERFACE_ENTRY_IMPL(IOleControl)
  34. COM_INTERFACE_ENTRY_IMPL(IOleObject)
  35. COM_INTERFACE_ENTRY_IMPL(IPersistStreamInit)
  36. END_COM_MAP()
  37. BEGIN_PROPERTY_MAP(CDialErr)
  38. // Example entries
  39. // PROP_ENTRY("Property Description", dispid, clsid)
  40. // PROP_PAGE(CLSID_StockColorPage)
  41. END_PROPERTY_MAP()
  42. BEGIN_MSG_MAP(CDialErr)
  43. MESSAGE_HANDLER(WM_PAINT, OnPaint)
  44. MESSAGE_HANDLER(WM_SETFOCUS, OnSetFocus)
  45. MESSAGE_HANDLER(WM_KILLFOCUS, OnKillFocus)
  46. END_MSG_MAP()
  47. // IViewObjectEx
  48. STDMETHOD(GetViewStatus)(DWORD* pdwStatus)
  49. {
  50. ATLTRACE(_T("IViewObjectExImpl::GetViewStatus\n"));
  51. *pdwStatus = VIEWSTATUS_SOLIDBKGND | VIEWSTATUS_OPAQUE;
  52. return S_OK;
  53. }
  54. // IDialErr
  55. public:
  56. HRESULT OnDraw(ATL_DRAWINFO& di);
  57. };
  58. #endif //__DIALERR_H_