Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CWinApp::EnableShellOpen

Call this function, typically from your InitInstance override, to enable your application's users to open data files when they double-click the files from within the Windows File Manager.

void EnableShellOpen( );

Call the RegisterShellFileTypes member function in conjunction with this function, or provide a .REG file with your application for manual registration of document types.

// The following code fragment is from CMyApp::InitInstance. 
// CMyApp is a CWinApp-derived class. 

// enable file manager drag/drop and DDE Execute open
EnableShellOpen();
RegisterShellFileTypes();

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.