Skip to content

Commit 76addee

Browse files
author
Colin Robertson
committed
Fix more global white space issues
1 parent bcc0003 commit 76addee

779 files changed

Lines changed: 10766 additions & 12446 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/assembler/masm/assume.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Enables error checking for register values.
2323
> ASSUME *register*:ERROR [[, *register*:ERROR]]...<br/>
2424
> ASSUME [[*register*:]] NOTHING [[, *register*:NOTHING]]...
2525
26-
2726
## Remarks
2827

2928
After an `ASSUME` is put into effect, the assembler watches for changes to the values of the given registers. **ERROR** generates an error if the register is used. **NOTHING** removes register error checking. You can combine different kinds of assumptions in one statement.

docs/assembler/masm/struct-masm.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Declares a structure type having the specified *field-declarations*. Each field
2222
> *field-declarations*<br/>
2323
> *name* ENDS
2424
25-
2625
## See also
2726

2827
[Directives Reference](../../assembler/masm/directives-reference.md)<br/>

docs/atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ A [CString](../atl-mfc-shared/using-cstring.md) object contains character string
3333

3434
To use a `CString` object as a C-style string, cast the object to LPCTSTR. In the following example, the `CString` returns a pointer to a read-only C-style null-terminated string. The `strcpy` function puts a copy of the C-style string in the variable `myString`.
3535

36-
```
37-
CString aCString = "A string";
38-
char myString[256];
36+
```cpp
37+
CString aCString = "A string";
38+
char myString[256];
3939
strcpy(myString, (LPCTSTR)aCString);
4040
```
4141

docs/atl-mfc-shared/reference/cimage-class.md

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ To determine if an attached bitmap is a DIB section, call [IsDibSection](#isdibs
113113

114114
## Example
115115

116-
```cpp
116+
```cpp
117117
// Get a CDC for the image
118118
CDC* pDC = CDC::FromHandle(m_myImage.GetDC());
119119

@@ -122,19 +122,19 @@ pDC->Rectangle(0, 40, 100, 50);
122122
m_myImage.ReleaseDC();
123123
```
124124
125-
When you use `CImage` in an MFC project, note which member functions in your project expect a pointer to a [CBitmap](../../mfc/reference/cbitmap-class.md) object. If you want to use `CImage` with such a function, like [CMenu::AppendMenu](../../mfc/reference/cmenu-class.md#appendmenu), use [CBitmap::FromHandle](../../mfc/reference/cbitmap-class.md#fromhandle), pass it your `CImage` HBITMAP, and use the returned `CBitmap*`.
125+
When you use `CImage` in an MFC project, note which member functions in your project expect a pointer to a [CBitmap](../../mfc/reference/cbitmap-class.md) object. If you want to use `CImage` with such a function, like [CMenu::AppendMenu](../../mfc/reference/cmenu-class.md#appendmenu), use [CBitmap::FromHandle](../../mfc/reference/cbitmap-class.md#fromhandle), pass it your `CImage` HBITMAP, and use the returned `CBitmap*`.
126126
127127
## Example
128128
129-
```cpp
129+
```cpp
130130
void CMyDlg::OnRButtonDown(UINT nFlags, CPoint point)
131131
{
132132
UNREFERENCED_PARAMETER(nFlags);
133-
133+
134134
CBitmap* pBitmap = CBitmap::FromHandle(m_myImage);
135135
m_pmenuPop->AppendMenu(0, ID_BMPCOMMAND, pBitmap);
136136
ClientToScreen(&point);
137-
m_pmenuPop->TrackPopupMenu(TPM_RIGHTBUTTON | TPM_LEFTALIGN, point.x,
137+
m_pmenuPop->TrackPopupMenu(TPM_RIGHTBUTTON | TPM_LEFTALIGN, point.x,
138138
point.y, this);
139139
}
140140
```
@@ -144,8 +144,8 @@ Through `CImage`, you have access to the actual bits of a DIB section. You can u
144144
You can use `CImage` from either MFC or ATL.
145145

146146
> [!NOTE]
147-
> When you create a project using `CImage`, you must define `CString` before you include `atlimage.h`. If your project uses ATL without MFC, include `atlstr.h` before you include `atlimage.h`. If your project uses MFC (or if it is an ATL project with MFC support), include `afxstr.h` before you include `atlimage.h`.
148-
>
147+
> When you create a project using `CImage`, you must define `CString` before you include `atlimage.h`. If your project uses ATL without MFC, include `atlstr.h` before you include `atlimage.h`. If your project uses MFC (or if it is an ATL project with MFC support), include `afxstr.h` before you include `atlimage.h`.<br/>
148+
> <br/>
149149
> Likewise, you must include `atlimage.h` before you include `atlimpl.cpp`. To accomplish this easily, include `atlimage.h` in your `stdafx.h`.
150150
151151
## Requirements
@@ -243,7 +243,7 @@ Nonzero if successful; otherwise 0.
243243

244244
Alpha-blend bitmaps support color blending on a per-pixel basis.
245245

246-
When *bBlendOp* is set to the default of AC_SRC_OVER, the source bitmap is placed over the destination bitmap based on the alpha values of the source pixels.
246+
When *bBlendOp* is set to the default of AC_SRC_OVER, the source bitmap is placed over the destination bitmap based on the alpha values of the source pixels.
247247

248248
## <a name="attach"></a> CImage::Attach
249249

@@ -447,9 +447,9 @@ TRUE if successful. Otherwise FALSE.
447447

448448
### Example
449449

450-
The following example creates a 100x100 pixel bitmap, using 16 bits to encode each pixel. In a given 16-bit pixel, bits 0-3 encode the red component, bits 4-7 encode green, and bits 8-11 encode blue. The remaining 4 bits are unused.
450+
The following example creates a 100x100 pixel bitmap, using 16 bits to encode each pixel. In a given 16-bit pixel, bits 0-3 encode the red component, bits 4-7 encode green, and bits 8-11 encode blue. The remaining 4 bits are unused.
451451

452-
```cpp
452+
```cpp
453453
DWORD adwBitmasks[3] = { 0x0000000f, 0x000000f0, 0x00000f00 };
454454
m_myImage.CreateEx(100, 100, 16, BI_BITFIELDS, adwBitmasks, 0);
455455
```
@@ -666,17 +666,16 @@ An array of GUIDs, with each element corresponding to one of the file types in t
666666
*pszAllFilesDescription*<br/>
667667
If this parameter is not NULL, the filter string will have one additional filter at the beginning of the list. This filter will have the current value of *pszAllFilesDescription* for its description, and accepts files of any extension supported by any other exporter in the list.
668668
669-
For example:
669+
For example:
670670
671-
```cpp
671+
```cpp
672672
//First filter in the list will be titled "All Image Files", and
673673
//will accept files with any extension supported by any exporter.
674674
CImage::GetExporterFilterString(
675-
strExporters, aguidFileTypes,
675+
strExporters, aguidFileTypes,
676676
_T("All Image Files"));
677677
```
678678

679-
680679
*dwExclude*<br/>
681680
Set of bit flags specifying which file types to exclude from the list. Allowable flags are:
682681

@@ -762,17 +761,16 @@ An array of GUIDs, with each element corresponding to one of the file types in t
762761
*pszAllFilesDescription*<br/>
763762
If this parameter is not NULL, the filter string will have one additional filter at the beginning of the list. This filter will have the current value of *pszAllFilesDescription* for its description, and accepts files of any extension supported by any other exporter in the list.
764763

765-
For example:
764+
For example:
766765

767-
```cpp
766+
```cpp
768767
//First filter in the list will be titled "All Image Files", and
769768
//will accept files with any extension supported by any importer.
770769
CImage::GetImporterFilterString(
771-
strImporters, aguidFileTypes,
770+
strImporters, aguidFileTypes,
772771
_T("All Image Files"));
773772
```
774773
775-
776774
*dwExclude*<br/>
777775
Set of bit flags specifying which file types to exclude from the list. Allowable flags are:
778776
@@ -1301,7 +1299,7 @@ Sets the red, green, blue (RGB) color values for a range of entries in the palet
13011299
13021300
```
13031301
void SetColorTable(
1304-
UINT iFirstColor,
1302+
UINT iFirstColor,
13051303
UINT nColors,
13061304
const RGBQUAD* prgbColors) throw();
13071305
```
@@ -1368,7 +1366,7 @@ The index of a color in the color palette.
13681366
Sets the pixel at the locations specified by *x* and *y* to the colors indicated by *r*, *g*, and *b*, in a red, green, blue (RGB) image.
13691367
13701368
```
1371-
void SetPixelRGB(
1369+
void SetPixelRGB(
13721370
int x,
13731371
int y,
13741372
BYTE r,
@@ -1580,12 +1578,12 @@ TRUE if successful, otherwise FALSE.
15801578
15811579
`TransparentBlt` is supported for source bitmaps of 4 bits per pixel and 8 bits per pixel. Use [CImage::AlphaBlend](#alphablend) to specify 32 bits-per-pixel bitmaps with transparency.
15821580
1583-
### Example
1581+
### Example
15841582
1585-
```cpp
1586-
// Performs a transparent blit from the source image to the destination
1583+
```cpp
1584+
// Performs a transparent blit from the source image to the destination
15871585
// image using the images' current transparency settings
1588-
BOOL TransparentBlt(CImage* pSrcImage, CImage* pDstImage,
1586+
BOOL TransparentBlt(CImage* pSrcImage, CImage* pDstImage,
15891587
int xDest, int yDest, int nDestWidth, int nDestHeight)
15901588
{
15911589
HDC hDstDC = NULL;
@@ -1617,4 +1615,4 @@ BOOL TransparentBlt(CImage* pSrcImage, CImage* pDstImage,
16171615
[CreateDIBSection](/windows/desktop/api/wingdi/nf-wingdi-createdibsection)<br/>
16181616
[ATL COM Desktop Components](../../atl/atl-com-desktop-components.md)<br/>
16191617
[Device-Independent Bitmaps](/windows/desktop/gdi/device-independent-bitmaps)<br/>
1620-
[CreateDIBSection](/windows/desktop/api/wingdi/nf-wingdi-createdibsection)
1618+
[CreateDIBSection](/windows/desktop/api/wingdi/nf-wingdi-createdibsection)

docs/atl-mfc-shared/reference/coledatetime-class.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ A `SYSTEMTIME` structure to be converted to a date/time value and copied into th
189189
*filetimeSrc*<br/>
190190
A `FILETIME` structure to be converted to a date/time value and copied into the new `COleDateTime` object. Note that `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a local time in the structure, your results will be incorrect. See [File Times](/windows/desktop/SysInfo/file-times) in the Windows SDK for more information.
191191

192-
*nYear*, *nMonth*, *nDay*, *nHour*, *nMin*, *nSec*
192+
*nYear*, *nMonth*, *nDay*, *nHour*, *nMin*, *nSec*<br/>
193193
Indicate the date and time values to be copied into the new `COleDateTime` object.
194194

195-
*wDosDate*, *wDosTime*
195+
*wDosDate*, *wDosTime*<br/>
196196
MS-DOS date and time values to be converted to a date/time value and copied into the new `COleDateTime` object.
197197

198198
*dbts*<br/>
@@ -294,13 +294,13 @@ If the status of this `COleDateTime` object is null, the return value is an empt
294294

295295
A brief description of the three forms for this function follows:
296296

297-
`Format`( *dwFlags*, *lcid*)
297+
`Format`( *dwFlags*, *lcid*)<br/>
298298
This form formats the value by using the language specifications (locale IDs) for date and time. Using the default parameters, this form will print the date and the time, unless the time portion is 0 (midnight), in which case it will print just the date, or the date portion is 0 (30 December 1899), in which case it will print just the time. If the date/time value is 0 (30 December 1899, midnight), this form with the default parameters will print midnight.
299299

300-
`Format`( *lpszFormat*)
300+
`Format`( *lpszFormat*)<br/>
301301
This form formats the value by using the format string which contains special formatting codes that are preceded by a percent sign (%), as in `printf`. The formatting string is passed as a parameter to the function. For more information about the formatting codes, see [strftime, wcsftime](../../c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l.md) in the Run-Time Library Reference.
302302

303-
`Format`( *nFormatID*)
303+
`Format`( *nFormatID*)<br/>
304304
This form formats the value by using the format string which contains special formatting codes that are preceded by a percent sign (%), as in `printf`. The formatting string is a resource. The ID of this string resource is passed as the parameter. For more information about the formatting codes, see [strftime, wcsftime](../../c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l.md) in the *Run-Time Library Reference*.
305305

306306
### Example
@@ -662,13 +662,13 @@ Returns the status of this `COleDateTime` value. If you call `GetStatus` on a `C
662662
The return value is defined by the `DateTimeStatus` enumerated type, which is defined within the `COleDateTime` class.
663663

664664
```
665-
enum DateTimeStatus
666-
{
667-
error = -1,
668-
valid = 0,
669-
invalid = 1, // Invalid date (out of range, etc.)
670-
null = 2, // Literally has no value
671-
};
665+
enum DateTimeStatus
666+
{
667+
error = -1,
668+
valid = 0,
669+
invalid = 1, // Invalid date (out of range, etc.)
670+
null = 2, // Literally has no value
671+
};
672672
```
673673

674674
For a brief description of these status values, see the following list:
@@ -891,10 +891,10 @@ The `DATE` operator will assert if the `COleDateTime` object is set to null. See
891891
Parses a string to read a date/time value.
892892

893893
```
894-
bool ParseDateTime(
895-
LPCTSTR lpszDate,
896-
DWORD dwFlags = 0,
897-
LCID lcid = LANG_USER_DEFAULT) throw();
894+
bool ParseDateTime(
895+
LPCTSTR lpszDate,
896+
DWORD dwFlags = 0,
897+
LCID lcid = LANG_USER_DEFAULT) throw();
898898
```
899899

900900
### Parameters
@@ -952,15 +952,15 @@ For more information about the bounds and implementation for `COleDateTime` valu
952952
Sets the date of this `COleDateTime` object.
953953

954954
```
955-
int SetDate(
956-
int nYear,
957-
int nMonth,
958-
int nDay) throw();
955+
int SetDate(
956+
int nYear,
957+
int nMonth,
958+
int nDay) throw();
959959
```
960960

961961
### Parameters
962962

963-
*nYear*, *nMonth*, *nDay*
963+
*nYear*, *nMonth*, *nDay*<br/>
964964
Indicate the date components to be copied into this `COleDateTime` object.
965965

966966
### Return Value
@@ -1023,18 +1023,18 @@ For more information about the bounds for `COleDateTime` values, see the article
10231023
Sets the date and time of this `COleDateTime` object.
10241024

10251025
```
1026-
int SetDateTime(
1027-
int nYear,
1028-
int nMonth,
1029-
int nDay,
1030-
int nHour,
1031-
int nMin,
1032-
int nSec) throw();
1026+
int SetDateTime(
1027+
int nYear,
1028+
int nMonth,
1029+
int nDay,
1030+
int nHour,
1031+
int nMin,
1032+
int nSec) throw();
10331033
```
10341034

10351035
### Parameters
10361036

1037-
*nYear*, *nMonth*, *nDay*, *nHour*, *nMin*, *nSec*
1037+
*nYear*, *nMonth*, *nDay*, *nHour*, *nMin*, *nSec*<br/>
10381038
Indicate the date and time components to be copied into this `COleDateTime` object.
10391039

10401040
### Return Value
@@ -1131,15 +1131,15 @@ See the example for [GetStatus](#getstatus).
11311131
Sets the time of this `COleDateTime` object.
11321132

11331133
```
1134-
int SetTime(
1135-
int nHour,
1136-
int nMin,
1137-
int nSec) throw();
1134+
int SetTime(
1135+
int nHour,
1136+
int nMin,
1137+
int nSec) throw();
11381138
```
11391139

11401140
### Parameters
11411141

1142-
*nHour*, *nMin*, *nSec*
1142+
*nHour*, *nMin*, *nSec*<br/>
11431143
Indicate the time components to be copied into this `COleDateTime` object.
11441144

11451145
### Return Value

docs/atl-mfc-shared/reference/coledatetimespan-class.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ COleDateTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw();
126126
*dblSpanSrc*<br/>
127127
The number of days to be copied into the new `COleDateTimeSpan` object.
128128

129-
*lDays*, *nHours*, *nMins*, *nSecs*
129+
*lDays*, *nHours*, *nMins*, *nSecs*<br/>
130130
Indicate the day and time values to be copied into the new `COleDateTimeSpan` object.
131131

132132
### Remarks
@@ -186,10 +186,10 @@ Call these functions to create a formatted representation of the time-span value
186186

187187
A brief description of the forms for this function follows:
188188

189-
**Format(** *pFormat* **)**
189+
**Format(** *pFormat* **)**<br/>
190190
This form formats the value using the format string that contains special formatting codes that are preceded by a percent sign (%), as in `printf`. The formatting string is passed as a parameter to the function.
191191

192-
**Format(** *nID* **)**
192+
**Format(** *nID* **)**<br/>
193193
This form formats the value using the format string that contains special formatting codes that are preceded by a percent sign (%), as in `printf`. The formatting string is a resource. The ID of this string resource is passed as the parameter.
194194

195195
### Example
@@ -357,11 +357,11 @@ The status of this `COleDateTimeSpan` value.
357357
The return value is defined by the `DateTimeSpanStatus` enumerated type, which is defined within the `COleDateTimeSpan` class.
358358

359359
```
360-
enum DateTimeSpanStatus{
361-
valid = 0,
362-
invalid = 1,
363-
null = 2,
364-
};
360+
enum DateTimeSpanStatus{
361+
valid = 0,
362+
invalid = 1,
363+
null = 2,
364+
};
365365
```
366366

367367
For a brief description of these status values, see the following list:
@@ -554,11 +554,11 @@ DateTimeSpanStatus m_status;
554554
### Remarks
555555

556556
```
557-
enum DateTimeSpanStatus{
558-
valid = 0,
559-
invalid = 1,
560-
null = 2,
561-
};
557+
enum DateTimeSpanStatus{
558+
valid = 0,
559+
invalid = 1,
560+
null = 2,
561+
};
562562
```
563563

564564
For a brief description of these status values, see the following list:
@@ -663,7 +663,7 @@ void SetDateTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw();
663663

664664
### Parameters
665665

666-
*lDays*, *nHours*, *nMins*, *nSecs*
666+
*lDays*, *nHours*, *nMins*, *nSecs*<br/>
667667
Indicate the date-span and time-span values to be copied into this `COleDateTimeSpan` object.
668668

669669
### Remarks
@@ -708,11 +708,11 @@ The new status value for this `COleDateTimeSpan` object.
708708
The *Status* parameter value is defined by the `DateTimeSpanStatus` enumerated type, which is defined within the `COleDateTimeSpan` class.
709709

710710
```
711-
enum DateTimeSpanStatus{
712-
valid = 0,
713-
invalid = 1,
714-
null = 2,
715-
};
711+
enum DateTimeSpanStatus{
712+
valid = 0,
713+
invalid = 1,
714+
null = 2,
715+
};
716716
```
717717

718718
For a brief description of these status values, see the following list:

0 commit comments

Comments
 (0)