Skip to content

Commit a2436dc

Browse files
author
mtx48109
committed
windows formatting review pr22
1 parent b354b6f commit a2436dc

30 files changed

Lines changed: 169 additions & 195 deletions

docs/windows/abstract-cpp-component-extensions.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ The **abstract** keyword declares either:
2020
- A type member function can be defined only in a derived type.
2121

2222
## All Platforms
23-
**Syntax**
23+
### Syntax
2424

25-
```
25+
```cpp
2626
class-declaration
2727
class-identifier
2828
abstract {}
2929
virtualreturn-typemember-function-identifier() abstract ;
3030
```
3131
32-
**Remarks**
32+
### Remarks
3333
3434
The first example syntax declares a class to be abstract. The *class-declaration* component can be either a native C++ declaration (**class** or **struct**), or a C++ extension declaration (**ref class** or **ref struct**) if the `/ZW` or `/clr` compiler option is specified.
3535
@@ -45,17 +45,16 @@ virtualreturn-typemember-function-identifier() abstract ;
4545
For more information, see [Ref classes and structs](http://msdn.microsoft.com/library/windows/apps/hh699870.aspx).
4646
4747
### Requirements
48-
Compiler option: **/ZW**
48+
Compiler option: `/ZW`
4949
5050
## Common Language Runtime
5151
5252
### Requirements
53-
Compiler option: **/clr**
53+
Compiler option: `/clr`
5454
5555
### Examples
56-
**Example**
5756
58-
The following code example generates an error because class `X` is marked `abstract`.
57+
The following code example generates an error because class `X` is marked **abstract**.
5958
6059
```cpp
6160
// abstract_keyword.cpp
@@ -70,9 +69,7 @@ int main() {
7069
}
7170
```
7271

73-
**Example**
74-
75-
The following code example generates an error because it instantiates a native class that is marked `abstract`. This error will occur with or without the `/clr` compiler option.
72+
The following code example generates an error because it instantiates a native class that is marked **abstract**. This error will occur with or without the `/clr` compiler option.
7673

7774
```cpp
7875
// abstract_keyword_2.cpp
@@ -86,9 +83,7 @@ int main() {
8683
// cannot be instantiated. See declaration of 'X'}
8784
```
8885
89-
**Example**
90-
91-
The following code example generates an error because function `f` includes a definition but is marked `abstract`. The final statement in the example shows that declaring an abstract virtual function is equivalent to declaring a pure virtual function.
86+
The following code example generates an error because function `f` includes a definition but is marked **abstract**. The final statement in the example shows that declaring an abstract virtual function is equivalent to declaring a pure virtual function.
9287
9388
```cpp
9489
// abstract_keyword_3.cpp

docs/windows/accelerator-editor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ An accelerator table is a Windows resource that contains a list of accelerator k
1919

2020
You can use [Class View](http://msdn.microsoft.com/8d7430a9-3e33-454c-a9e1-a85e3d2db925) to hook accelerator key commands to code.
2121

22-
With the Accelerator editor, you can:
22+
With the **Accelerator** editor, you can:
2323

2424
- [Set Accelerator Properties](../windows/setting-accelerator-properties.md)
2525

@@ -30,12 +30,12 @@ An accelerator table is a Windows resource that contains a list of accelerator k
3030
- [Use Predefined Accelerator Keys](../windows/predefined-accelerator-keys.md)
3131

3232
> [!TIP]
33-
> While using the Accelerator editor, you can right-click to display a shortcut menu of frequently used commands. The commands available depend on what the pointer is pointing to.
33+
> While using the **Accelerator** editor, you can right-click to display a shortcut menu of frequently used commands. The commands available depend on what the pointer is pointing to.
3434
3535
> [!NOTE]
3636
> Windows does not allow you to create empty accelerator tables. If you create an accelerator table with no entries, it is deleted automatically when you save the table.
3737
38-
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).
38+
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).
3939

4040
## Requirements
4141
Win32

docs/windows/accelerator-key-property.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ The following are legal entries for the Key property in the accelerator table:
1818

1919
- Single-digit numbers are always interpreted as the corresponding key, rather than as ASCII or ANSI values.
2020

21-
- Values from 1 through 26, when preceded with zeros, are interpreted as ^A through ^Z, which represents the ASCII value of the letters of the alphabet when pressed with the CTRL key held down.
21+
- Values from 1 through 26, when preceded with zeros, are interpreted as ^A through ^Z, which represents the ASCII value of the letters of the alphabet when pressed with the **Ctrl** key held down.
2222

2323
- Values from 27-32 are always interpreted as three-digit decimal values 027 through 032.
2424

2525
- Values from 033 through 255, whether preceded by 0's or not are interpreted as ANSI values.
2626

2727
- A single keyboard character. Uppercase A - Z or the numbers 0 - 9 can be either ASCII or virtual key values; any other character is ASCII only.
2828

29-
- A single keyboard character in the range A - Z (uppercase only), preceded by a caret (^) (for example, ^C). This enters the ASCII value of the key when it is pressed with the CTRL key held down.
29+
- A single keyboard character in the range A - Z (uppercase only), preceded by a caret (^) (for example, ^C). This enters the ASCII value of the key when it is pressed with the **Ctrl** key held down.
3030

3131
> [!NOTE]
32-
> When entering an ASCII value, the modifier property options are limited. The only control key available for use is the ALT key.
32+
> When entering an ASCII value, the modifier property options are limited. The only control key available for use is the **Alt** key.
3333
3434
- Any valid virtual key identifier. The drop-down Key box in the Accelerator table contains a list of standard virtual key identifiers.
3535

docs/windows/accelerator-keys-for-the-dialog-editor.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ Below are the default accelerator keys for the Dialog editor commands. To change
2020
2121
|Command|Keys|Description|
2222
|-------------|----------|-----------------|
23-
|Format.AlignBottoms|CTRL + SHIFT + DOWN ARROW|Aligns the bottom edges of the selected controls with the dominant control|
24-
|Format.AlignCenters|SHIFT + F9|Aligns the vertical centers of the selected controls with the dominant control|
25-
|Format.AlignLefts|CTRL + SHIFT + LEFT ARROW|Aligns the left edges of the selected controls with the dominant control|
26-
|Format.AlignMiddles|F9|Aligns the horizontal centers of the selected controls with the dominant control|
27-
|Format.AlignRights|CTRL + SHIFT + RIGHT ARROW|Aligns the right edges of the selected controls with the dominant control|
28-
|Format.AlignTops|CTRL + SHIFT + UP ARROW|Aligns the top edges of the selected controls with the dominant control|
29-
|Format.ButtonBottom|CTRL + B|Places the selected buttons along the bottom-center of the dialog box|
30-
|Format.ButtonRight|CTRL + R|Places the selected buttons in the top-right corner of the dialog box|
31-
|Format.CenterHorizontal|CTRL + SHIFT + F9|Centers the controls horizontally within the dialog box|
32-
|Format.CenterVertical|CTRL + F9|Centers the controls vertically within the dialog box|
33-
|Format.CheckMnemonics|CTRL + M|Checks uniqueness of mnemonics|
34-
|Format.SizeToContent|SHIFT + F7|Resizes the selected control(s) to fit the caption text|
35-
|Format.SpaceAcross|ALT + LEFT ARROW|Evenly spaces the selected controls horizontally|
36-
|Format.SpaceDown|ALT + DOWN ARROW|Evenly spaces the selected controls vertically|
37-
|Format.TabOrder|CTRL + D|Sets the order of controls within the dialog|
38-
|Format.TestDialog|CTRL + T|Runs the dialog box to test appearance and behavior|
39-
|Format.ToggleGuides|CTRL + G|Cycles between no grid, guidelines, and grid for dialog editing|
23+
|Format.AlignBottoms|**Ctrl** + **Shift** + **Down Arrow**|Aligns the bottom edges of the selected controls with the dominant control|
24+
|Format.AlignCenters|**Shift** + **F9**|Aligns the vertical centers of the selected controls with the dominant control|
25+
|Format.AlignLefts|**Ctrl** + **Shift** + **Left Arrow**|Aligns the left edges of the selected controls with the dominant control|
26+
|Format.AlignMiddles|**F9**|Aligns the horizontal centers of the selected controls with the dominant control|
27+
|Format.AlignRights|**Ctrl** + **Shift** + **Right Arrow**|Aligns the right edges of the selected controls with the dominant control|
28+
|Format.AlignTops|**Ctrl** + **Shift** + **Up Arrow**|Aligns the top edges of the selected controls with the dominant control|
29+
|Format.ButtonBottom|**Ctrl** + **B**|Places the selected buttons along the bottom-center of the dialog box|
30+
|Format.ButtonRight|**Ctrl** + **R**|Places the selected buttons in the top-right corner of the dialog box|
31+
|Format.CenterHorizontal|**Ctrl** + **Shift** + **F9**|Centers the controls horizontally within the dialog box|
32+
|Format.CenterVertical|**Ctrl** + **F9**|Centers the controls vertically within the dialog box|
33+
|Format.CheckMnemonics|**Ctrl** + **M**|Checks uniqueness of mnemonics|
34+
|Format.SizeToContent|**Shift** + **F7**|Resizes the selected control(s) to fit the caption text|
35+
|Format.SpaceAcross|**Alt** + **Left Arrow**|Evenly spaces the selected controls horizontally|
36+
|Format.SpaceDown|**Alt** + **Down Arrow**|Evenly spaces the selected controls vertically|
37+
|Format.TabOrder|**Ctrl** + **D**|Sets the order of controls within the dialog|
38+
|Format.TestDialog|**Ctrl** + **T**|Runs the dialog box to test appearance and behavior|
39+
|Format.ToggleGuides|**Ctrl** + **G**|Cycles between no grid, guidelines, and grid for dialog editing|
4040

41-
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).
41+
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).
4242

4343
## Requirements
4444
Win32

0 commit comments

Comments
 (0)