Chapter 12: Dialog-Based Windows Visual C++ and MFC Fundamentals
This (blue dotted) rectangle allows you to effectively control the area available to your
controls. To set the location and dimensions of the available area, click one of the (blue
dotted) rectangle borders or corners and drag in the desired direction. If a control is
positioned on a border that is moving, the control would be repositioned accordingly:
After setting the (blue dotted) rectangular location and area, you can add but cannot move
a control outside of that (blue dotted) rectangle. The idea is to allow you to design a
control or a group of controls in a (temporary) confined area. The (blue dotted) rectangle
provides an effective means of aligning controls. After using it, if you want to add and
manipulate controls outside of it, you should display the grids.
Practical Learning: Adding Controls to a Dialog Box
- Create a new dialog-based application and name it Dialog11a
- Click the Toggle Grid button