summaryrefslogtreecommitdiffstats
path: root/private/oleutest/simpcntr/app.h
diff options
context:
space:
mode:
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