The information in this article applies to:
SUMMARY
In the Visual C++ Integrated Development Environment (IDE) you can open a file belonging to a Project via the Open item on the File menu or from the FileView tab in the Workspace window. You can open files that don't belong to the current project using the File menu's Open item only. The window displaying the file contents opens up docked or with certain dimensions that cannot be specified by anyone. MORE INFORMATIONThe dimensions of the windows containing the file data can be controlled using Visual C++ Automation. The Visual Basic Scripting Edition code below captures the DocumentOpen event and then specifies the Window dimensions:
Use the following steps to use the above macro in Visual C++:
This macro works for the text-based files only, For example, it has no effect in the Resource Editor. You can also implement this as an Add-In written in Visual C++ or Visual Basic. It handles only opening existing files. To handle creation of new documents, you should use the NewDocument event. REFERENCESFor more information please refer the following topic in the MSDN Library: Visual Studio 6.0 Documentation; Visual C++ Documentation; Using Visual C++; Visual C++ User's Guide; Automating Tasks in Developer Studio; Developer Studio Objects Additional query words:
Keywords : kbAutomation kbEditor kbide kbScript kbVC500 kbVC600 kbVCObj kbDevStudio kbDSupport kbGrpDSTools |
Last Reviewed: September 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |