Click here to Skip to main content
15,896,726 members
Articles / Programming Languages / C++

Host Windows Explorer in your applications using the new Vista hosting APIs

Rate me:
Please Sign up or sign in to vote.
4.92/5 (37 votes)
27 Feb 2007CPOL9 min read 161.8K   4.2K   57  
This article describes in detail the new IExplorerBrowser interface and the Explorer Browser object available in Windows Vista. The Explorer Browser object allows developers to host Windows Explorer in their applications.
// ExplorerBrowser.h : main header file for the ExplorerBrowser application
//
#pragma once

#ifndef __AFXWIN_H__
	#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h"       // main symbols
#include "ExplorerBrowser_i.h"


// CExplorerBrowserApp:
// See ExplorerBrowser.cpp for the implementation of this class
//

class CExplorerBrowserApp : public CWinApp
{
public:
	CExplorerBrowserApp();
	
	bool m_bShowFrames;

// Overrides
public:
	virtual BOOL InitInstance();

// Implementation
	afx_msg void OnAppAbout();
	DECLARE_MESSAGE_MAP()
	afx_msg void OnFileNewframedwindow();
	afx_msg void OnFileNew();
	BOOL ExitInstance(void);
};

extern CExplorerBrowserApp theApp;

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions