summaryrefslogtreecommitdiffstats
path: root/private/oleutest/simpcntr/app.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/oleutest/simpcntr/app.h
downloadNT4.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/simpcntr/app.h')
-rw-r--r--private/oleutest/simpcntr/app.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/private/oleutest/simpcntr/app.h b/private/oleutest/simpcntr/app.h
new file mode 100644
index 000000000..c00bcc3d7
--- /dev/null
+++ b/private/oleutest/simpcntr/app.h
@@ -0,0 +1,76 @@
+//**********************************************************************
+// 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>
+#include "ioipf.h"
+
+class CSimpleDoc;
+
+class CSimpleApp : public IUnknown
+{
+public:
+
+ int m_nCount; // reference count
+ HWND m_hAppWnd; // main window handle
+ HACCEL m_hAccel; // Handle to accelerator table
+ HINSTANCE m_hInst; // application instance
+
+ COleInPlaceFrame m_OleInPlaceFrame; // IOleInPlaceFrame Implementation
+
+ CSimpleDoc FAR * m_lpDoc; // pointer to document object
+ BOOL m_fInitialized; // OLE initialization flag
+ BOOL m_fCSHMode;
+ BOOL m_fMenuMode;
+ HWND m_hwndUIActiveObj; // HWND of UIActive Object
+ HPALETTE m_hStdPal; // Color palette used by container
+ BOOL m_fAppActive; // TRUE if app is active
+
+ BOOL m_fDeactivating; // TRUE if we are in the process of deactivating
+ // an inplace object.
+
+ BOOL m_fGotUtestAccelerator;// Received a unit test accelerator
+
+ HWND m_hDriverWnd; // Window of test driver
+
+ CSimpleApp(); // Constructor
+ ~CSimpleApp(); // Destructor
+ RECT nullRect;
+
+
+ // 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();
+
+ // In-Place support functions
+ void AddFrameLevelUI();
+ void AddFrameLevelTools();
+ void ContextSensitiveHelp (BOOL fEnterMode);
+ LRESULT QueryNewPalette(void);
+};
+
+LRESULT wSelectPalette(HWND hWnd, HPALETTE hPal, BOOL fBackground);
+
+#endif