Leaked source code of windows server 2003
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.
|
|
//**********************************************************************
// 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
LRESULT 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_
|