Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 12: Dialog-Based Windows Visual C++ and MFC Fundamentals



  1. Display the dialog and click the Toggle Grid button

  2. Click the top Edit control. Then press and hold Ctrl

  3. Click the middle Edit control and click the bottom Edit control. Release Ctrl

  4. On the Dialog toolbar, click the Make Same Width button


13.4.6..Controls Positions................................................................................


The controls you position on a dialog box or a form assume their given place. Most of the
time, these positions are not practical. You can move them around to any positions of
your choice.

To move a control, click and drag it, while the mouse cursor is a cross , in the desired
direction until it reaches the intended position.

To move a group of controls, first select them. Then drag the selection to the desired
location.

To help with positioning the controls, Visual C++ provides the Dialog toolbar with the
following buttons:

Button Name Button Name Button Name

Align Left^ Align Tops^ Vertical^
Align Right
Align
Bottoms

Horizontal

Across
Down

Practical Learning: Moving Controls



  1. While the edit controls are still selected, on the Dialog toolbar, click the Down


button
Free download pdf