Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

The Developer Studio Object Model

The macros used with Visual C++ projects use an object model that is exposed by Developer Studio. Developer Studio exposes two types of objects:

Both types of objects can have properties, events, and methods associated with them. Methods and properties are used to set or collect data from the object. Events are sent from the object as a notification that something interesting has occurred inside the object.

The Objects Exposed in Developer Studio

Figure 17.1 shows the objects that make up the Developer Studio object model.

17fig01.gif

Figure 17.1 The Developer Studio object model.

The following objects are included in the Developer Studio object model:

Application The Developer Studio application.
Breakpoint Represents a debugging breakpoint.
Breakpoints A collection that contains all of the breakpoints.
BuildProject A project that contains build information.
Configuration An object that represents the settings used to build a project.
Configurations A collection of all Configuration objects in a project.
Debugger Used to interact with a process being debugged in Developer Studio.
Document An open document.
Documents A collection of open Document objects; also includes TextDocument objects.
Project A group of related files; the files share at least one Configuration object.
Projects A collection of Project objects in the current Developer Studio workspace.
TextDocument An open text file.
TextEditor The Developer Studio text editor.
TextSelection Represents the currently selected text in a TextDocument.
TextWindow A window that contains an open text file.
Window A MDI client window that contains a Document or TextDocument.
Windows The collection of all open windows.

Share ThisShare This

Informit Network