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.

52 lines
1.2 KiB

  1. //**********************************************************************
  2. // File name: hlp_doc.hxx
  3. //
  4. // Definition of CSimpleDoc
  5. //
  6. // Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _HLP_DOC_HXX_ )
  9. #define _HLP_DOC_HXX_
  10. class CSimpleSite;
  11. class CAutomateSite;
  12. class CSimpleApp;
  13. class CSimpleDoc : public IUnknown
  14. {
  15. public:
  16. int m_nCount;
  17. LPSTORAGE m_lpStorage;
  18. LPOLEINPLACEACTIVEOBJECT m_lpActiveObject;
  19. BOOL m_fInPlaceActive;
  20. BOOL m_fAddMyUI;
  21. BOOL m_fModifiedMenu;
  22. CSimpleSite FAR * m_lpSite;
  23. CSimpleApp FAR * m_lpApp;
  24. HWND m_hDocWnd;
  25. static CSimpleDoc FAR * Create();
  26. void Close(void);
  27. CSimpleDoc();
  28. CSimpleDoc(CSimpleApp FAR *lpApp, HWND hWnd);
  29. ~CSimpleDoc();
  30. // IUnknown Interface
  31. STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
  32. STDMETHODIMP_(ULONG) AddRef();
  33. STDMETHODIMP_(ULONG) Release();
  34. void InsertObject(void);
  35. void DisableInsertObject(void);
  36. long lResizeDoc(LPRECT lpRect);
  37. long lAddVerbs(void);
  38. void PaintDoc(HDC hDC);
  39. void HandleDispatch(WPARAM);
  40. };
  41. #endif