Chapter 17 Quick Reference


To

Do this

Create and display a modal dialog box.

Create a form, and display it using the ShowDialog function.

Return a status code from a dialog box.

Set the DialogResult property for the form. For example:

DialogResult = DialogResult::OK

Alternatively, set the DialogResult property of the buttons you want to use to close the form.

Create a common dialog box.

Create a dialog box object of the appropriate type, set its properties, and then display it using ShowDialog.

Create and use a TreeView.

Drag a TreeView onto the form, and then edit the control’s Nodes collection to add nodes to the TreeView.

Create and use a ListView.

Drag a ListView object onto the form, and then edit the control’s Items collection.

Add a splitter to a form.

Drag a Splitter object from the Toolbox to the form. It will place itself in the correct position.

Add a toolbar to a form.

Drag a ToolBar object onto the form, where it will dock at the top.

Add buttons to a toolbar.

Use the property editor to edit the Buttons collection of the ToolBar.

Add a status bar to a form.

Drag a StatusBar from the Toolbox onto the form. You can then assign strings to the Text property to have them display on the StatusBar.

Add panels to a status bar.

Set the ShowPanels property of the StatusBar to true. Now use the Panels property of the StatusBar to create StatusBarPanel objects. You can now assign strings to the Text property of a panel to display the strings in the panel.




Microsoft Visual C++  .NET(c) Step by Step
Microsoft Visual C++ .NET(c) Step by Step
ISBN: 735615675
EAN: N/A
Year: 2003
Pages: 208

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net