Google Answers Logo
View Question
 
Q: Embed Windows Explorer into Win32 C++ GUI without MFC ( No Answer,   0 Comments )
Question  
Subject: Embed Windows Explorer into Win32 C++ GUI without MFC
Category: Computers > Programming
Asked by: quinthar-ga
List Price: $10.00
Posted: 13 Nov 2004 15:10 PST
Expires: 13 Dec 2004 15:10 PST
Question ID: 428561
How do I embed a Windows Explorer into my own Win32 C++ GUI, without
using MFC?  Essentially, how do I satisfy the following API?

// OpenWindowsExplorer
// Fills the supplied HWND with the standard Windows Explorer file system 
// interface.  The user can use this just like she would use a standard Windows
// Explorer window, the only difference being this window is stuck inside my
// application's interface.
// Arguments:
// - hWnd ? The window through which the user will interact with the file system
// - path ? A path to the initial folder displayed in the window
// Returns:
// - Something* - Some kind of handle that I can use to manipulate the file view
Something* OpenWindowsExplorer( HWND hWnd, Path* path );

// CloseWindowsExplorer
// Cleans up resources allocated by OpenWindowsExplorer()
// Arguments:
// - handle - The handle from OpenWindowsExplorer( )
void CloseWindowsExplorer( Something* handle );

// SetWindowsExplorerCallback
// Sets a callback functor to handle events generated by the windows explorer.
// Arguments:
// - handle - The handle from OpenWindowsExplorer( )
// - callback - Pointer to a callback functor
void SetWindowsExplorerCallback( Something* handle, IWindowsExplorer* callback );

// IWindowsExplorer
struct IWindowsExplorer {
	// onFolderChanging
	// Called when the user changes folders in the Windows Explorer.
	// Arguments:
	// - from - Path to the current folder displayed
	// - to - Path to the proposed, new folder
	// Returns:
	// Return true to allow the change, return false to disallow (cancel) the
	// folder change.
	bool onFolderChanging( Path* from, Path* to );
}
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy