Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 1: Introduction to Visual C++


One of the differences between Microsoft Visual C++ 6 and Microsoft Visual Studio
.Net is that, on version 6, the menu bar can be moved to any section on the IDE. To do
this, you can click and hold on the small vertical grab bars on the left side of the File
menu, then drag to any location of your choice. In the 2002 and 2003 versions, the
menu bar cannot be moved.
In all versions, the main menu is customizable. This means that you can add and remove
items from the menu.

1.1.5 The Toolbars............................................................................................


A toolbar is an object made of buttons. These buttons provide the same features you
would get from the (main) menu, only faster. Under the main menu, the IDE is equipped
with an object called the Standard toolbar. For example, to create a new project, on the
main menu, you could click File -> New -> Project... On the other hand, the Standard
toolbar is equipped with a button to perform the same action a little faster.

By default, the Standard toolbar is positioned under the main menu but you can position
it anywhere else on the IDE. Like the menu, the toolbars can be customized.


  1. Click and drag the gripper on the Standard toolbar down and right:

  2. Notice that the toolbar has moved.

  3. Once moved, you can resize the toolbar. To do that, position the mouse on the right
    border of the toolbar. Click and drag in the left direction:

  4. To restore the toolbar to its previous position, double-click its title bar.

  5. You can get a list of the toolbars that are available if you right-click any button on
    any toolbar or menu.
    For example, right-click a toolbar and notice the list

  6. To dismiss the menu, press Esc.
    In this book, every toolbar is referred to by its name

  7. A toolbar is equipped with buttons that could be unfamiliar. Just looking at one is not
    obvious. The solution into knowing what a button is used for is to position the mouse
    on top of it. A tool tip will come up and display for a few seconds.
    As an example, position the mouse (do not click) on the second button from left on
    the Standard toolbar:

  8. Without clicking, move the mouse to another button and to other buttons


From now on, each button on any toolbar will be named after its tool tip. This
means that, if a tool tip displays "Hungry", its button will be called the Hungry
Button. If a tool tip display "Exercises and Assignments", its button will be called
the Exercises and Assignments button. If you are asked to click a button, position
Free download pdf