Adding Gallery Items to a Project

OverviewHow Do I

The Gallery provides a convenient way to add complex code such as components and ActiveX controls to your project, or to let you reuse previously written code. Select the Gallery item you want to include in your active project and click the Insert button.

Gallery items are always added to the active project.

The result of inserting a Gallery item into your project depends upon the item you select. For example, inserting a user-defined component (.OGX file) adds the class header (.H) and implementation (.CPP) files as well as any associated resources to the active project.

As another example, suppose you insert an ActiveX control into your project. The Gallery generates a programmatic interface called an ActiveX control wrapper, which allows the ActiveX control to communicate with your program. If the ActiveX control were a dialog gauge to measure program progress, the associated wrapper (a header file and an implementation file) would allow you to write code allowing the gauge to represent program action visually.

Tip   Each item in a Gallery default folder has a help topic that you can view by selecting the item and then clicking the More Info button. Components from third-party vendors have their own documentation. You should refer to each component’s documentation to determine its functionality.

What do you want to do?