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.

70 lines
1.9 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. HMENU m_hMainMenu;
  19. HMENU m_hColorMenu;
  20. HMENU m_hHelpMenu;
  21. HWND m_hDocWnd;
  22. HWND m_hHatchWnd;
  23. public:
  24. static CSimpSvrDoc FAR * Create(CSimpSvrApp FAR *lpApp, LPRECT lpRect,HWND hWnd);
  25. CSimpSvrDoc();
  26. CSimpSvrDoc(CSimpSvrApp FAR *lpApp, HWND hWnd);
  27. ~CSimpSvrDoc();
  28. // IUnknown Interfaces
  29. STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj);
  30. STDMETHODIMP_(ULONG) AddRef();
  31. STDMETHODIMP_(ULONG) Release();
  32. long lResizeDoc(LPRECT lpRect);
  33. long lAddVerbs();
  34. BOOL Load(LPTSTR lpszFileName);
  35. void PaintDoc(HDC hDC);
  36. void lButtonDown(WPARAM wParam,LPARAM lParam);
  37. HRESULT CreateObject(REFIID riid, LPVOID FAR *ppvObject);
  38. void Close();
  39. void SetStatusText();
  40. void ShowDocWnd();
  41. void ShowHatchWnd();
  42. void CSimpSvrDoc::HideDocWnd();
  43. void CSimpSvrDoc::HideHatchWnd();
  44. // member access
  45. inline HMENU GetMainMenu() { return m_hMainMenu; };
  46. inline HMENU GetColorMenu() { return m_hColorMenu; };
  47. inline HMENU GetHelpMenu() { return m_hHelpMenu; } ;
  48. inline HWND GethDocWnd() { return m_hDocWnd; };
  49. inline HWND GethHatchWnd() { return m_hHatchWnd; };
  50. inline HWND GethAppWnd() { return m_lpApp->GethAppWnd(); };
  51. inline CSimpSvrApp FAR * GetApp() { return m_lpApp; };
  52. inline CSimpSvrObj FAR * GetObj() { return m_lpObj; };
  53. inline void ClearObj() { m_lpObj = NULL; };
  54. };
  55. #endif
  56.