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.

55 lines
1.4 KiB

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