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.

65 lines
1.5 KiB

  1. //**********************************************************************
  2. // File name: doc.h
  3. //
  4. // Definition of CSimpSvrDoc
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _DOC_H_ )
  9. #define _DOC_H_
  10. class CSimpSvrApp;
  11. class CSimpSvrObj;
  12. class CSimpSvrDoc : IUnknown
  13. {
  14. private:
  15. int m_nCount;
  16. CSimpSvrApp FAR * m_lpApp;
  17. CSimpSvrObj FAR * m_lpObj;
  18. HWND m_hDocWnd;
  19. HWND m_hHatchWnd;
  20. BOOL m_fClosing;
  21. public:
  22. static CSimpSvrDoc FAR * Create(CSimpSvrApp FAR *lpApp, LPRECT lpRect,HWND hWnd);
  23. CSimpSvrDoc();
  24. CSimpSvrDoc(CSimpSvrApp FAR *lpApp, HWND hWnd);
  25. ~CSimpSvrDoc();
  26. // IUnknown Interfaces
  27. STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
  28. STDMETHODIMP_(ULONG) AddRef();
  29. STDMETHODIMP_(ULONG) Release();
  30. long lResizeDoc(LPRECT lpRect);
  31. long lAddVerbs();
  32. BOOL Load(LPSTR lpszFileName);
  33. void PaintDoc(HDC hDC);
  34. void lButtonDown(WPARAM wParam,LPARAM lParam);
  35. HRESULT CreateObject(REFIID riid, LPVOID FAR *ppvObject);
  36. void Close();
  37. void SetStatusText();
  38. void ShowDocWnd();
  39. void ShowHatchWnd();
  40. void CSimpSvrDoc::HideDocWnd();
  41. void CSimpSvrDoc::HideHatchWnd();
  42. // member access
  43. inline HWND GethDocWnd() { return m_hDocWnd; };
  44. inline HWND GethHatchWnd() { return m_hHatchWnd; };
  45. inline HWND GethAppWnd() { return m_lpApp->GethAppWnd(); };
  46. inline CSimpSvrApp FAR * GetApp() { return m_lpApp; };
  47. inline CSimpSvrObj FAR * GetObj() { return m_lpObj; };
  48. inline void ClearObj() { m_lpObj = NULL; };
  49. };
  50. #endif