Skip to content

Commit d8b3533

Browse files
authored
Merge pull request #758 from MicrosoftDocs/master636845572185650915
Fix git push error for protected CLA branch
2 parents db87c49 + 18bbfa9 commit d8b3533

20 files changed

+311
-525
lines changed

.openpublishing.redirection.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7510,6 +7510,76 @@
75107510
"redirect_url": "/cpp/windows/selecting-controls",
75117511
"redirect_document_id": false
75127512
},
7513+
{
7514+
"source_path": "docs/windows/aligning-controls-on-a-guide.md",
7515+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7516+
"redirect_document_id": false
7517+
},
7518+
{
7519+
"source_path": "docs/windows/creating-and-setting-guides-and-margins.md",
7520+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7521+
"redirect_document_id": false
7522+
},
7523+
{
7524+
"source_path": "docs/windows/disabling-guides.md",
7525+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7526+
"redirect_document_id": false
7527+
},
7528+
{
7529+
"source_path": "docs/windows/guide-settings-dialog-box.md",
7530+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7531+
"redirect_document_id": false
7532+
},
7533+
{
7534+
"source_path": "docs/windows/modifying-the-layout-grid.md",
7535+
"redirect_url": "/cpp/windows/dialog-editor-states-guides-and-grids",
7536+
"redirect_document_id": false
7537+
},
7538+
{
7539+
"source_path": "docs/windows/arranging-push-buttons-along-the-right-or-bottom-of-a-dialog-box.md",
7540+
"redirect_url": "/cpp/windows/aligning-groups-of-controls",
7541+
"redirect_document_id": false
7542+
},
7543+
{
7544+
"source_path": "docs/windows/centering-controls-in-a-dialog-box.md",
7545+
"redirect_url": "/cpp/windows/aligning-groups-of-controls",
7546+
"redirect_document_id": false
7547+
},
7548+
{
7549+
"source_path": "docs/windows/evening-the-spacing-between-controls.md",
7550+
"redirect_url": "/cpp/windows/aligning-groups-of-controls",
7551+
"redirect_document_id": false
7552+
},
7553+
{
7554+
"source_path": "docs/windows/adding-controls-to-a-dialog-causes-the-dialog-to-no-longer-function.md",
7555+
"redirect_url": "/cpp/windows/troubleshooting-the-dialog-editor",
7556+
"redirect_document_id": false
7557+
},
7558+
{
7559+
"source_path": "docs/windows/using-the-richedit-1-0-control-with-mfc.md",
7560+
"redirect_url": "/cpp/windows/troubleshooting-the-dialog-editor",
7561+
"redirect_document_id": false
7562+
},
7563+
{
7564+
"source_path": "docs/windows/cropping-or-extending-an-entire-image-image-editor-for-icons.md",
7565+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7566+
"redirect_document_id": false
7567+
},
7568+
{
7569+
"source_path": "docs/windows/resizing-an-entire-image-image-editor-for-icons.md",
7570+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7571+
"redirect_document_id": false
7572+
},
7573+
{
7574+
"source_path": "docs/windows/shrinking-or-stretching-an-entire-image-image-editor-for-icons.md",
7575+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7576+
"redirect_document_id": false
7577+
},
7578+
{
7579+
"source_path": "docs/windows/shrinking-or-stretching-part-of-an-image-image-editor-for-icons.md",
7580+
"redirect_url": "/cpp/windows/resizing-an-image-image-editor-for-icons",
7581+
"redirect_document_id": false
7582+
},
75137583
{
75147584
"source_path": "docs/windows/activationfactory-activationfactory-constructor.md",
75157585
"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)