Displaying Files By Using the Open With Command
A project can ask the IDE to display the Open With dialog box. This request prompts the user to open a file that has a selection of standard editors. The following steps describe this process.
The project calls OpenStandardEditor, specifying a value of OSE_UseOpenWithDialog for the OSEOpenDocEditor parameter.
Based on the document's file name extension, the IDE determines which editors listed in the Registry can open the specified document and displays this information in the Open With dialog box.
Note
Projects that have an intrinsic editor that must be included in the Open With dialog box must register an editor factory for each such editor. Intrinsic editors only function together with a particular type of project, which is enforced in the implementation of the CreateEditorInstance method. The IDE has a built-in editor factory for the core text editor and the binary editor. The IDE also creates an instance of an editor factory on behalf of each registered Windows file association. An example of such a file is Microsoft Word.
As soon as the user selects an item from the Open With dialog box, the IDE then opens the document by calling OpenStandardEditor method. For more information, see How to: Open Standard Editors.
See Also
Tasks
Concepts
Displaying Files By Using the Open File Command