diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/simpdnd/app.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/oleutest/simpdnd/app.h')
-rw-r--r-- | private/oleutest/simpdnd/app.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/private/oleutest/simpdnd/app.h b/private/oleutest/simpdnd/app.h new file mode 100644 index 000000000..37f827897 --- /dev/null +++ b/private/oleutest/simpdnd/app.h @@ -0,0 +1,67 @@ +//********************************************************************** +// File name: app.h +// +// Definition of CSimpleApp +// +// Copyright (c) 1992 - 1993 Microsoft Corporation. All rights reserved. +//********************************************************************** + +#if !defined( _APP_H_) +#define _APP_H_ + +#include <ole2.h> + +class CSimpleDoc; + +class CSimpleApp : public IUnknown +{ +public: + + int m_nCount; // reference count + HWND m_hAppWnd; // main window handle + HWND m_hDriverWnd; // window handle for the driver app. + HINSTANCE m_hInst; // application instance + CSimpleDoc FAR * m_lpDoc; // pointer to document object + BOOL m_fInitialized; // OLE initialization flag + HMENU m_hMainMenu; + HMENU m_hFileMenu; + HMENU m_hEditMenu; + HMENU m_hHelpMenu; + HMENU m_hCascadeMenu; // OLE object's verb + + // Drag/Drop related fields + int m_nDragDelay; // time delay (in msec) before drag should start + int m_nDragMinDist; // min. distance (radius) before drag should start + int m_nScrollDelay; // time delay (in msec) before scroll should start + int m_nScrollInset; // Border inset distance to start drag scroll + int m_nScrollInterval; // scroll interval time (in msec) + + DWORD m_dwSourceEffect; // Allowed effects to source + DWORD m_dwTargetEffect; // Allowed target effects + + CSimpleApp(); // Constructor + ~CSimpleApp(); // Destructor + + // IUnknown Interfaces + STDMETHODIMP QueryInterface(REFIID riid, LPVOID FAR* ppvObj); + STDMETHODIMP_(ULONG) AddRef(); + STDMETHODIMP_(ULONG) Release(); + + // Initialization methods + + BOOL fInitApplication (HANDLE hInstance); + BOOL fInitInstance (HANDLE hInstance, int nCmdShow); + + // Message handling methods + + long lCommandHandler (HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam); + long lSizeHandler (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); + long lCreateDoc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); + BOOL HandleAccelerators (LPMSG lpMsg); + void PaintApp(HDC hDC); + void DestroyDocs(); + void UpdateDragDropEffects(int iMenuPos, int iMenuCommand, DWORD dwEffect, + DWORD *pdwEffectToUpdate); +}; + +#endif // _APP_H_ |