Skip to content

Commit 5270117

Browse files
authored
Merge pull request MicrosoftDocs#1694 from MicrosoftDocs/master
1/31/2019 AM Publish
2 parents b488462 + 431e8bd commit 5270117

20 files changed

Lines changed: 311 additions & 525 deletions

‎.openpublishing.redirection.json‎

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7380,6 +7380,76 @@
73807380
"redirect_url": "/cpp/windows/selecting-controls",
73817381
"redirect_document_id": false
73827382
},
7383+
{
7384+
"source_path": "docs/windows/aligning-controls-on-a-guide.md",
7385+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7386+
"redirect_document_id": false
7387+
},
7388+
{
7389+
"source_path": "docs/windows/creating-and-setting-guides-and-margins.md",
7390+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7391+
"redirect_document_id": false
7392+
},
7393+
{
7394+
"source_path": "docs/windows/disabling-guides.md",
7395+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7396+
"redirect_document_id": false
7397+
},
7398+
{
7399+
"source_path": "docs/windows/guide-settings-dialog-box.md",
7400+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7401+
"redirect_document_id": false
7402+
},
7403+
{
7404+
"source_path": "docs/windows/modifying-the-layout-grid.md",
7405+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7406+
"redirect_document_id": false
7407+
},
7408+
{
7409+
"source_path": "docs/windows/arranging-push-buttons-along-the-right-or-bottom-of-a-dialog-box.md",
7410+
"redirect_url": "/cpp/windows/aligning-groups-of-controls",
7411+
"redirect_document_id": false
7412+
},
7413+
{
7414+
"source_path": "docs/windows/centering-controls-in-a-dialog-box.md",
7415+
"redirect_url": "/cpp/windows/aligning-groups-of-controls",
7416+
"redirect_document_id": false
7417+
},
7418+
{
7419+
"source_path": "docs/windows/evening-the-spacing-between-controls.md",
7420+
"redirect_url": "/cpp/windows/aligning-groups-of-controls",
7421+
"redirect_document_id": false
7422+
},
7423+
{
7424+
"source_path": "docs/windows/adding-controls-to-a-dialog-causes-the-dialog-to-no-longer-function.md",
7425+
"redirect_url": "/cpp/windows/troubleshooting-the-dialog-editor",
7426+
"redirect_document_id": false
7427+
},
7428+
{
7429+
"source_path": "docs/windows/using-the-richedit-1-0-control-with-mfc.md",
7430+
"redirect_url": "/cpp/windows/troubleshooting-the-dialog-editor",
7431+
"redirect_document_id": false
7432+
},
7433+
{
7434+
"source_path": "docs/windows/cropping-or-extending-an-entire-image-image-editor-for-icons.md",
7435+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7436+
"redirect_document_id": false
7437+
},
7438+
{
7439+
"source_path": "docs/windows/resizing-an-entire-image-image-editor-for-icons.md",
7440+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7441+
"redirect_document_id": false
7442+
},
7443+
{
7444+
"source_path": "docs/windows/shrinking-or-stretching-an-entire-image-image-editor-for-icons.md",
7445+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7446+
"redirect_document_id": false
7447+
},
7448+
{
7449+
"source_path": "docs/windows/shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md",
7450+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7451+
"redirect_document_id": false
7452+
},
73837453
{
73847454
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
73857455
"redirect_url": "/cpp/windows/activationfactory-class#activationfactory",

‎docs/windows/TOC.md‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,15 @@
8181
###### [Setting the Width of a Horizontal Scroll Bar](setting-the-width-of-a-horizontal-scroll-bar.md)
8282
###### [Arrangement of Controls on Dialog Boxes](arrangement-of-controls-on-dialog-boxes.md)
8383
####### [Dialog Editor States (Guides and Grids)](dialog-editor-states-guides-and-grids.md)
84-
######## [Creating and Setting Guides and Margins](creating-and-setting-guides-and-margins.md)
85-
######## [Aligning Controls on a Guide](aligning-controls-on-a-guide.md)
86-
######## [Disabling Guides](disabling-guides.md)
87-
######## [Modifying the Layout Grid](modifying-the-layout-grid.md)
88-
######### [Guide Settings Dialog Box](guide-settings-dialog-box.md)
8984
####### [Grouping Radio Buttons on a Dialog Box](grouping-radio-buttons-on-a-dialog-box.md)
90-
####### [Aligning Groups of Controls](aligning-groups-of-controls.md)
91-
####### [Evening the Spacing Between Controls](evening-the-spacing-between-controls.md)
92-
####### [Centering Controls in a Dialog Box](centering-controls-in-a-dialog-box.md)
93-
####### [Arranging Push Buttons Along the Right or Bottom of a Dialog Box](arranging-push-buttons-along-the-right-or-bottom-of-a-dialog-box.md)
85+
####### [Align Controls](aligning-groups-of-controls.md)
9486
####### [Changing the Tab Order of Controls](changing-the-tab-order-of-controls.md)
9587
###### [Custom Controls in the Dialog Editor](custom-controls-in-the-dialog-editor.md)
9688
###### [Defining Mnemonics (Access Keys)](defining-mnemonics-access-keys.md)
9789
###### [Specifying the Location and Size of a Dialog Box](specifying-the-location-and-size-of-a-dialog-box.md)
9890
###### [Testing a Dialog Box](testing-a-dialog-box.md)
9991
##### [Accelerator Keys for the Dialog Editor](accelerator-keys-for-the-dialog-editor.md)
10092
##### [Troubleshooting the Dialog Editor](troubleshooting-the-dialog-editor.md)
101-
###### [Adding Controls to a Dialog Causes the Dialog to No Longer Function](adding-controls-to-a-dialog-causes-the-dialog-to-no-longer-function.md)
102-
###### [Using the RichEdit 1.0 Control with MFC](using-the-richedit-1-0-control-with-mfc.md)
10393
##### [Defining Member Variables for Dialog Controls](defining-member-variables-for-dialog-controls.md)
10494
#### [Image Editor for Icons](image-editor-for-icons.md)
10595
##### [Editing Graphical Resources (Image Editor for Icons)](editing-graphical-resources-image-editor-for-icons.md)
@@ -110,10 +100,6 @@
110100
###### [Editing Parts of an Image (Image Editor for Icons)](editing-parts-of-an-image-image-editor-for-icons.md)
111101
###### [Flipping an Image (Image Editor for Icons)](flipping-an-image-image-editor-for-icons.md)
112102
###### [Resizing an Image (Image Editor for Icons)](resizing-an-image-image-editor-for-icons.md)
113-
####### [Resizing an Entire Image (Image Editor for Icons)](resizing-an-entire-image-image-editor-for-icons.md)
114-
####### [Cropping or Extending an Entire Image (Image Editor for Icons)](cropping-or-extending-an-entire-image-image-editor-for-icons.md)
115-
####### [Shrinking or Stretching an Entire Image (Image Editor for Icons)](shrinking-or-stretching-an-entire-image-image-editor-for-icons.md)
116-
####### [Shrinking or Stretching Part of an Image (Image Editor for Icons)](shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md)
117103
###### [Creating a Custom Brush (Image Editor for Icons)](creating-a-custom-brush-image-editor-for-icons.md)
118104
###### [Changing Image Properties (Image Editor for Icons)](changing-image-properties-image-editor-for-icons.md)
119105
###### [Saving Bitmaps as GIFs or JPEGs (Image Editor for Icons)](saving-bitmaps-as-gifs-or-jpegs-image-editor-for-icons.md)

‎docs/windows/adding-controls-to-a-dialog-causes-the-dialog-to-no-longer-function.md‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎docs/windows/aligning-controls-on-a-guide.md‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎docs/windows/aligning-groups-of-controls.md‎

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
---
2-
title: "Aligning Groups of Controls"
2+
title: "Align Controls"
33
ms.date: "11/04/2016"
4-
helpviewer_keywords: ["controls [C++], aligning"]
4+
helpviewer_keywords: ["controls [C++], aligning", "controls [C++], positioning", "Space Evenly command", "dialog box controls [C++], placement", "Center in Dialog command", "Arrange Buttons command", "buttons, arranging push buttons in dialog boxes", "push buttons"]
55
ms.assetid: a4f49a73-4a17-44b3-8568-aa35f646b5cf
66
---
7-
# Aligning Groups of Controls
7+
# Align Controls
88

9-
The following procedure shows you how to align groups of controls.
9+
For information on adding resources to managed projects, see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
1010

11-
### To align groups of controls
11+
The following procedures show you how to align controls:
12+
13+
## To align groups of controls
1214

1315
1. [Select the controls](../windows/selecting-multiple-controls.md) you want to align. Be sure to select the control that you want to be the dominant control first or set it to be the dominant control before executing the alignment or sizing command.
1416

1517
The final position of the group of controls depends on the position of the dominant control. For more information on selecting the dominant control, see [Specifying the Dominant Control](../windows/specifying-the-dominant-control.md).
1618

17-
2. From the **Format** menu, choose **Align**, and then choose one of the following alignments:
19+
1. From the **Format** menu, choose **Align**, and then choose one of the following alignments:
1820

1921
- `Lefts`: aligns the selected controls along their left sides.
2022

@@ -28,7 +30,39 @@ The following procedure shows you how to align groups of controls.
2830

2931
- `Bottoms`: aligns the selected controls along their bottom edges.
3032

31-
For information on adding resources to managed projects, please see [Resources in Desktop Apps](/dotnet/framework/resources/index) in the *.NET Framework Developer's Guide*. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resource strings to properties, see [Creating Resource Files for Desktop Apps](/dotnet/framework/resources/creating-resource-files-for-desktop-apps). For information on globalization and localization of resources in managed apps, see [Globalizing and Localizing .NET Framework Applications](/dotnet/standard/globalization-localization/index).
33+
## To even the spacing between controls
34+
35+
The **Dialog** editor enables you to space controls evenly between the outermost controls selected.
36+
37+
1. Select the controls you want to rearrange.
38+
39+
1. From the **Format** menu, choose **Space Evenly**, and then choose one of the following spacing alignments:
40+
41+
- `Across`: space controls evenly between the leftmost and the rightmost control selected.
42+
43+
- `Down`: space controls evenly between the topmost and the bottommost control selected.
44+
45+
## To center controls in a dialog box
46+
47+
1. Select the control or controls you want to rearrange.
48+
49+
1. From the **Format** menu, choose **Center In Dialog**, and then choose one of the following arrangements:
50+
51+
- `Vertical`: center controls vertically in the dialog box.
52+
53+
- `Horizontal`: center controls horizontally in the dialog box.
54+
55+
## To arrange push buttons along the right or bottom of a dialog box
56+
57+
1. Select one or more push buttons.
58+
59+
1. From the **Format** menu, choose **Arrange Buttons**, and then choose one of the following arrangements:
60+
61+
- `Right`: aligns push buttons along the right edge of the dialog box.
62+
63+
- `Bottom`: aligns push buttons along the bottom edge of the dialog box.
64+
65+
If you select a control other than a push button, its position isn't affected.
3266

3367
## Requirements
3468

‎docs/windows/arranging-push-buttons-along-the-right-or-bottom-of-a-dialog-box.md‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎docs/windows/centering-controls-in-a-dialog-box.md‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)