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.
 
 
 
 
 
 

71 lines
1.8 KiB

//**********************************************************************
// 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