Skip to content

Commit 08b8f23

Browse files
authored
Merge branch 'master' into master
2 parents d5a8f6b + 457f87c commit 08b8f23

File tree

790 files changed

+3046
-3031
lines changed

Some content is hidden

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

790 files changed

+3046
-3031
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ _themes.VS.Modern/
1313

1414
# Documentation build
1515
/docs/vcppdocs
16+
debug.log

.openpublishing.redirection.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8377,12 +8377,12 @@
83778377
},
83788378
{
83798379
"source_path": "docs/windows/editing-properties-for-an-activex-control.md",
8380-
"redirect_url": "/cpp/windows/viewing-and-adding-activex-controls-to-a-dialog-box",
8380+
"redirect_url": "/cpp/windows/adding-editing-or-deleting-controls",
83818381
"redirect_document_id": false
83828382
},
83838383
{
83848384
"source_path": "docs/windows/insert-activex-control-dialog-box.md",
8385-
"redirect_url": "/cpp/windows/viewing-and-adding-activex-controls-to-a-dialog-box",
8385+
"redirect_url": "/cpp/windows/adding-editing-or-deleting-controls",
83868386
"redirect_document_id": false
83878387
},
83888388
{
@@ -8607,42 +8607,42 @@
86078607
},
86088608
{
86098609
"source_path": "docs/windows/creating-a-new-toolbar-button.md",
8610-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8610+
"redirect_url": "/cpp/windows/toolbar-editor",
86118611
"redirect_document_id": false
86128612
},
86138613
{
86148614
"source_path": "docs/windows/moving-a-toolbar-button.md",
8615-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8615+
"redirect_url": "/cpp/windows/toolbar-editor",
86168616
"redirect_document_id": false
86178617
},
86188618
{
86198619
"source_path": "docs/windows/copying-buttons-from-a-toolbar.md",
8620-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8620+
"redirect_url": "/cpp/windows/toolbar-editor",
86218621
"redirect_document_id": false
86228622
},
86238623
{
86248624
"source_path": "docs/windows/deleting-a-toolbar-button.md",
8625-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8625+
"redirect_url": "/cpp/windows/toolbar-editor",
86268626
"redirect_document_id": false
86278627
},
86288628
{
86298629
"source_path": "docs/windows/inserting-a-space-between-buttons-on-a-toolbar.md",
8630-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8630+
"redirect_url": "/cpp/windows/toolbar-editor",
86318631
"redirect_document_id": false
86328632
},
86338633
{
86348634
"source_path": "docs/windows/removing-space-between-buttons-on-a-toolbar.md",
8635-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8635+
"redirect_url": "/cpp/windows/toolbar-editor",
86368636
"redirect_document_id": false
86378637
},
86388638
{
86398639
"source_path": "docs/windows/changing-the-properties-of-a-toolbar-button.md",
8640-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8640+
"redirect_url": "/cpp/windows/toolbar-editor",
86418641
"redirect_document_id": false
86428642
},
86438643
{
86448644
"source_path": "docs/windows/toolbar-button-properties.md",
8645-
"redirect_url": "/cpp/windows/creating-moving-and-editing-toolbar-buttons",
8645+
"redirect_url": "/cpp/windows/toolbar-editor",
86468646
"redirect_document_id": false
86478647
},
86488648
{
@@ -13419,6 +13419,16 @@
1341913419
"source_path": "docs/parallel/openmp/a-31-thread-safe-lock-functions.md",
1342013420
"redirect_url": "/cpp/parallel/openmp/a-examples#a31-thread-safe-lock-functions",
1342113421
"redirect_document_id": false
13422+
},
13423+
{
13424+
"source_path": "docs/c-runtime-library/operator-delete-crt.md",
13425+
"redirect_url": "docs/c-runtime-library/delete-operator-crt",
13426+
"redirect_document_id": false
13427+
},
13428+
{
13429+
"source_path": "docs/c-runtime-library/operator-new-crt.md",
13430+
"redirect_url": "docs/c-runtime-library/new-operator-crt",
13431+
"redirect_document_id": false
1342213432
}
1342313433
]
1342413434
}

docs/atl-mfc-shared/date-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following points should be noted when working with these date and time forma
4949
> [!CAUTION]
5050
> Note that because 6:00 AM is always represented by a fractional value 0.25 regardless of whether the integer representing the day is positive (after December 30, 1899) or negative (before December 30, 1899), a simple floating point comparison would erroneously sort any DATE representing 6:00 AM on a day earlier than 12/30/1899 as *later* than a DATE representing 7:00 AM on that same day.
5151
52-
More information on issues related to the DATE and `COleDateTime` types can be found under [COleDateTime Class](../atl-mfc-shared/reference/coledatetime-class.md) and [Date and Time: Automation Support](../atl-mfc-shared/date-and-time-automation-support.md).
52+
More information on issues related to the DATE and `COleDateTime` types can be found under [COleDateTime Class](../atl-mfc-shared/reference/coledatetime-class.md) and [Date and Time: Automation Support](./date-and-time.md).
5353

5454
## See also
5555

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ To determine if an attached bitmap is a DIB section, call [IsDibSection](#isdibs
104104
105105
`CImage` cannot be selected into a new [CDC](../../mfc/reference/cdc-class.md). `CImage` creates its own HDC for the image. Because an HBITMAP can only be selected into one HDC at a time, the HBITMAP associated with the `CImage` cannot be selected into another HDC. If you need a CDC, retrieve the HDC from the `CImage` and give it to [CDC::FromHandle](../../mfc/reference/cdc-class.md#fromhandle).
106106

107-
## Example
107+
## Examples
108108

109109
```cpp
110110
// Get a CDC for the image
@@ -117,8 +117,6 @@ m_myImage.ReleaseDC();
117117
118118
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*`.
119119
120-
## Example
121-
122120
```cpp
123121
void CMyDlg::OnRButtonDown(UINT nFlags, CPoint point)
124122
{

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The `DATE` type is implemented as a floating-point value. Days are measured from
8484
> [!CAUTION]
8585
> In the table above, although day values become negative before midnight on December 30, 1899, time-of-day values do not. For example, 6:00 AM is always represented by a fractional value 0.25 regardless of whether the integer representing the day is positive (after December 30, 1899) or negative (before December 30, 1899). This means that a simple floating point comparison would erroneously sort a `COleDateTime` representing 6:00 AM on 12/29/1899 as **later** than one representing 7:00 AM on the same day.
8686
87-
The `COleDateTime` class handles dates from January 1, 100, through December 31, 9999. The `COleDateTime` class uses the Gregorian calendar; it does not support Julian dates. `COleDateTime` ignores Daylight Saving Time. (See [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).)
87+
The `COleDateTime` class handles dates from January 1, 100, through December 31, 9999. The `COleDateTime` class uses the Gregorian calendar; it does not support Julian dates. `COleDateTime` ignores Daylight Saving Time. (See [Date and Time: Automation Support](../date-and-time.md).)
8888

8989
> [!NOTE]
9090
> You can use the `%y` format to retrieve a two-digit year only for dates starting at 1900. If you use the `%y` format on a date before 1900, the code generates an ASSERT failure.
@@ -99,7 +99,7 @@ To avoid problems, specify a four-digit date. For example:
9999

100100
Basic arithmetic operations for the `COleDateTime` values use the companion class [COleDateTimeSpan](../../atl-mfc-shared/reference/coledatetimespan-class.md). `COleDateTimeSpan` values define a time interval. The relationship between these classes is similar to the one between [CTime](../../atl-mfc-shared/reference/ctime-class.md) and [CTimeSpan](../../atl-mfc-shared/reference/ctimespan-class.md).
101101

102-
For more information about the `COleDateTime` and `COleDateTimeSpan` classes, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
102+
For more information about the `COleDateTime` and `COleDateTimeSpan` classes, see the article [Date and Time: Automation Support](../date-and-time.md).
103103

104104
## Requirements
105105

@@ -231,7 +231,7 @@ For more information on the `time_t` data type, see the [time](../../c-runtime-l
231231

232232
For more information, see the [SYSTEMTIME](/windows/win32/api/minwinbase/ns-minwinbase-systemtime) and [FILETIME](/windows/win32/api/minwinbase/ns-minwinbase-filetime) structures in the Windows SDK.
233233

234-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
234+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
235235

236236
> [!NOTE]
237237
> The constructor using `DBTIMESTAMP` parameter is only available when OLEDB.h is included.
@@ -617,7 +617,7 @@ Valid return values range between 0 and 59.
617617
> [!NOTE]
618618
> The `COleDateTime` class does not support leap seconds.
619619
620-
For more information about the implementation for `COleDateTime`, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
620+
For more information about the implementation for `COleDateTime`, see the article [Date and Time: Automation Support](../date-and-time.md).
621621

622622
For information on other member functions that query the value of this `COleDateTime` object, see the following member functions:
623623

@@ -699,7 +699,7 @@ For more information about the operations that may set the status to invalid, se
699699

700700
- [operator +=, -=](#operator_add_eq_-_eq)
701701

702-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
702+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
703703

704704
### Example
705705

@@ -737,7 +737,7 @@ For information on other member functions that query the value of this `COleDate
737737

738738
- [GetDayOfYear](#getdayofyear)
739739

740-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
740+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
741741

742742
### Example
743743

@@ -756,7 +756,7 @@ DATE m_dt;
756756
> [!CAUTION]
757757
> Changing the value in the `DATE` object accessed by the pointer returned by this function will change the value of this `COleDateTime` object. It does not change the status of this `COleDateTime` object.
758758
759-
For more information about the implementation of the `DATE` object, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
759+
For more information about the implementation of the `DATE` object, see the article [Date and Time: Automation Support](../date-and-time.md).
760760

761761
## <a name="m_status"></a> COleDateTime::m_status
762762

@@ -811,7 +811,7 @@ For more information on the `time_t` data type, see the [time](../../c-runtime-l
811811

812812
For more information, see the [SYSTEMTIME](/windows/win32/api/minwinbase/ns-minwinbase-systemtime) and [FILETIME](/windows/win32/api/minwinbase/ns-minwinbase-filetime) structures in the Windows SDK.
813813

814-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
814+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
815815

816816
## <a name="operator_add_-"></a> COleDateTime::operator +, -
817817

@@ -837,7 +837,7 @@ The **+** and **-** operators will assert if the `COleDateTime` object is set to
837837

838838
For more information on the valid, invalid, and null status values, see the [m_status](#m_status) member variable.
839839

840-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
840+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
841841

842842
### Example
843843

@@ -864,7 +864,7 @@ For more information on the valid, invalid, and null status values, see the [m_s
864864

865865
The **+=** and **-=** operators will assert if the `COleDateTime` object is set to null. See [COleDateTime Relational Operators](#coledatetime_relational_operators) for an example.
866866

867-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
867+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
868868

869869
## <a name="operator_date"></a> COleDateTime::operator DATE
870870

@@ -876,7 +876,7 @@ operator DATE() const throw();
876876

877877
### Remarks
878878

879-
This operator returns a `DATE` object whose value is copied from this `COleDateTime` object. For more information about the implementation of the `DATE` object, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
879+
This operator returns a `DATE` object whose value is copied from this `COleDateTime` object. For more information about the implementation of the `DATE` object, see the article [Date and Time: Automation Support](../date-and-time.md).
880880

881881
The `DATE` operator will assert if the `COleDateTime` object is set to null. See [COleDateTime Relational Operators](#coledatetime_relational_operators) for an example.
882882

@@ -939,7 +939,7 @@ In the case of VAR_DATEVALUEONLY, the time value is set to time 0, or midnight.
939939

940940
If the string could not be converted to a date/time value or if there was a numerical overflow, the status of this `COleDateTime` object is invalid.
941941

942-
For more information about the bounds and implementation for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
942+
For more information about the bounds and implementation for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
943943

944944
## <a name="setdate"></a> COleDateTime::SetDate
945945

@@ -1012,7 +1012,7 @@ For information on member functions that query the value of this `COleDateTime`
10121012

10131013
- [GetDayOfYear](#getdayofyear)
10141014

1015-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
1015+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
10161016

10171017
### Example
10181018

@@ -1096,7 +1096,7 @@ For information on member functions that query the value of this `COleDateTime`
10961096

10971097
- [GetDayOfYear](#getdayofyear)
10981098

1099-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
1099+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
11001100

11011101
### Example
11021102

@@ -1189,7 +1189,7 @@ For information on member functions that query the value of this `COleDateTime`
11891189
11901190
- [GetDayOfYear](#getdayofyear)
11911191
1192-
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
1192+
For more information about the bounds for `COleDateTime` values, see the article [Date and Time: Automation Support](../date-and-time.md).
11931193
11941194
### Example
11951195

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ A `COleDateTimeSpan` keeps time in days.
6565

6666
`COleDateTimeSpan` is used with its companion class [COleDateTime](../../atl-mfc-shared/reference/coledatetime-class.md). `COleDateTime` encapsulates the `DATE` data type of OLE automation. `COleDateTime` represents absolute time values. All `COleDateTime` calculations involve `COleDateTimeSpan` values. The relation between these classes is analogous to the one between [CTime](../../atl-mfc-shared/reference/ctime-class.md) and [CTimeSpan](../../atl-mfc-shared/reference/ctimespan-class.md).
6767

68-
For more information on the `COleDateTime` and `COleDateTimeSpan` classes, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
68+
For more information on the `COleDateTime` and `COleDateTimeSpan` classes, see the article [Date and Time: Automation Support](../date-and-time.md).
6969

7070
## Requirements
7171

@@ -134,7 +134,7 @@ All of these constructors create new `COleDateTimeSpan` objects initialized to t
134134

135135
The status of the new `COleDateTimeSpan` object is set to valid.
136136

137-
For more information about the bounds for `COleDateTimeSpan` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
137+
For more information about the bounds for `COleDateTimeSpan` values, see the article [Date and Time: Automation Support](../date-and-time.md).
138138

139139
### Example
140140

@@ -375,7 +375,7 @@ The status of a `COleDateTimeSpan` object is invalid in the following cases:
375375

376376
For more information about the operations that may set the status to invalid, see [COleDateTimeSpan::operator +, -](../../atl-mfc-shared/reference/coledatetime-class.md#operator_add_-) and [COleDateTimeSpan::operator +=, -=](../../atl-mfc-shared/reference/coledatetime-class.md#operator_add_eq_-_eq).
377377

378-
For more information about the bounds for `COleDateTimeSpan` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
378+
For more information about the bounds for `COleDateTimeSpan` values, see the article [Date and Time: Automation Support](../date-and-time.md).
379379

380380
## <a name="gettotaldays"></a> COleDateTimeSpan::GetTotalDays
381381

@@ -575,7 +575,7 @@ For more information about the operations that may set the status to invalid, se
575575
> [!CAUTION]
576576
> This data member is for advanced programming situations. You should use the inline member functions [GetStatus](#getstatus) and [SetStatus](#setstatus). See `SetStatus` for further cautions regarding explicitly setting this data member.
577577
578-
For more information about the bounds for `COleDateTimeSpan` values, see the article [Date and Time: Automation Support](../../atl-mfc-shared/date-and-time-automation-support.md).
578+
For more information about the bounds for `COleDateTimeSpan` values, see the article [Date and Time: Automation Support](../date-and-time.md).
579579

580580
## <a name="operator_eq"></a> COleDateTimeSpan::operator =
581581

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ Specifies the bottom-right position of `CRect`.
284284

285285
### Remarks
286286

287-
If no arguments are given, `left`, `top`, `right`, and `bottom` members are not initialized.
287+
If no arguments are given, `left`, `top`, `right`, and `bottom` members are set to 0.
288288

289289
The `CRect`(`const RECT&`) and `CRect`(`LPCRECT`) constructors perform a [CopyRect](#copyrect). The other constructors initialize the member variables of the object directly.
290290

291291
### Example
292292

293293
```cpp
294-
// default constructor doesn't initialize!
295-
CRect rectUnknown;
294+
// default constructor is equivalent to CRect(0, 0, 0, 0)
295+
CRect emptyRect;
296296

297297
// four-integers are left, top, right, and bottom
298298
CRect rect(0, 0, 100, 50);

0 commit comments

Comments
 (0)