diff options
Diffstat (limited to 'private/oleutest/simpsvr/doc.h')
-rw-r--r-- | private/oleutest/simpsvr/doc.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/private/oleutest/simpsvr/doc.h b/private/oleutest/simpsvr/doc.h new file mode 100644 index 000000000..15c8d40bc --- /dev/null +++ b/private/oleutest/simpsvr/doc.h @@ -0,0 +1,70 @@ +//********************************************************************** +// File name: doc.h +// +// Definition of CSimpSvrDoc +// +// Copyright (c) 1993 Microsoft Corporation. All rights reserved. +//********************************************************************** + +#if !defined( _DOC_H_ ) +#define _DOC_H_ + +class CSimpSvrApp; +class CSimpSvrObj; + +class CSimpSvrDoc : IUnknown +{ +private: + int m_nCount; + + CSimpSvrApp FAR * m_lpApp; + CSimpSvrObj FAR * m_lpObj; + HMENU m_hMainMenu; + HMENU m_hColorMenu; + HMENU m_hHelpMenu; + + HWND m_hDocWnd; + HWND m_hHatchWnd; + +public: + static CSimpSvrDoc FAR * Create(CSimpSvrApp FAR *lpApp, LPRECT lpRect,HWND hWnd); + + CSimpSvrDoc(); + CSimpSvrDoc(CSimpSvrApp FAR *lpApp, HWND hWnd); + ~CSimpSvrDoc(); + +// IUnknown Interfaces + STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj); + STDMETHODIMP_(ULONG) AddRef(); + STDMETHODIMP_(ULONG) Release(); + + long lResizeDoc(LPRECT lpRect); + long lAddVerbs(); + + BOOL Load(LPTSTR lpszFileName); + void PaintDoc(HDC hDC); + void lButtonDown(WPARAM wParam,LPARAM lParam); + + HRESULT CreateObject(REFIID riid, LPVOID FAR *ppvObject); + + void Close(); + void SetStatusText(); + void ShowDocWnd(); + void ShowHatchWnd(); + void CSimpSvrDoc::HideDocWnd(); + void CSimpSvrDoc::HideHatchWnd(); + +// member access + inline HMENU GetMainMenu() { return m_hMainMenu; }; + inline HMENU GetColorMenu() { return m_hColorMenu; }; + inline HMENU GetHelpMenu() { return m_hHelpMenu; } ; + inline HWND GethDocWnd() { return m_hDocWnd; }; + inline HWND GethHatchWnd() { return m_hHatchWnd; }; + inline HWND GethAppWnd() { return m_lpApp->GethAppWnd(); }; + inline CSimpSvrApp FAR * GetApp() { return m_lpApp; }; + inline CSimpSvrObj FAR * GetObj() { return m_lpObj; }; + inline void ClearObj() { m_lpObj = NULL; }; + +}; + +#endif |