Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Customized Visual Studio .NET package: your fully integrated document window inside the IDE

, 20 Dec 2003
Create a fully integrated document window inside the Visual Studio IDE.
- File Name: DocView.h
- Date: 12/10/2003 4:46:09 PM
- Author: Michael Sheinin
- Description : 
	-The declaration if IVsWindowPane interface. the number of methods, type of
	parameters and return values were obtained during original "bined" package
	-The declaration of class CDocumentView that is resposible for visualization of
	the document data.
- Notes: 

#pragma once

#include <docobj.h>

interface IVsWindowPane : public IUnknown
	virtual STDMETHODIMP WP_Stub3( DWORD p1 ) = 0;
	virtual STDMETHODIMP WP_CreatePaneWindow( HWND hwndParent, int iX, int iY, int iCX, int iCY, HWND* phwnd ) = 0;
	virtual STDMETHODIMP WP_Stub5( void* p1 ) = 0;
	virtual STDMETHODIMP WP_Close( ) = 0;
	virtual STDMETHODIMP WP_Stub7( void* p1 ) = 0;
	virtual STDMETHODIMP WP_Stub8( void* p1 ) = 0;
	virtual STDMETHODIMP WP_Stub9( void* p1 ) = 0;

class CMediator;

class CDocumentView : public IVsWindowPane, public IOleCommandTarget
	void Attach( CMediator* pMdtr );
	STDMETHODIMP QueryInterface( REFIID rid, void** ppvObject );
	// IVsWindowPane
	STDMETHODIMP WP_CreatePaneWindow( HWND hwndParent, int iX, int iY,
										int iCX, int iCY, HWND* phwnd );
	STDMETHODIMP WP_Stub5( void* p1 );
	STDMETHODIMP WP_Stub7( void* p1 );
	STDMETHODIMP WP_Stub8( void* p1 );
	STDMETHODIMP WP_Stub9( void* p1 );
	// IOleCommandTarget
			const GUID *pguidCmdGroup,
			ULONG cCmds, // Number of commands in prgCmds array
			OLECMD *prgCmds, // Array of commands
			OLECMDTEXT *pCmdText // Pointer to name or status of command
			const GUID *pguidCmdGroup, // Pointer to command group
			DWORD nCmdID, // Identifier of command to execute
			DWORD nCmdExecOpt, // Options for executing the command
			VARIANTARG *pvaIn, // Pointer to input arguments
			VARIANTARG *pvaOut // Pointer to command output
	ULONG		m_uRefCnt;
	CMediator*	m_pMdtr;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Michael Sheinin
Web Developer
United States United States
For the last 7 years I have developed software in real-time/embedded and MS-Windows environments for military and civil markets. I hold B.Sc. degree in computer engineering. Living in Ontario, Canada, I like hiking and traveling in general. Currently, I'm looking for employment opportunity inside the GTA.

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 21 Dec 2003
Article Copyright 2003 by Michael Sheinin
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid