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