You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/date-type.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ The following points should be noted when working with these date and time forma
49
49
> [!CAUTION]
50
50
> 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.
51
51
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).
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/cimage-class.md
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ To determine if an attached bitmap is a DIB section, call [IsDibSection](#isdibs
104
104
105
105
`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).
106
106
107
-
## Example
107
+
## Examples
108
108
109
109
```cpp
110
110
// Get a CDC for the image
@@ -117,8 +117,6 @@ m_myImage.ReleaseDC();
117
117
118
118
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*`.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/coledatetime-class.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ The `DATE` type is implemented as a floating-point value. Days are measured from
84
84
> [!CAUTION]
85
85
> 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.
86
86
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).)
88
88
89
89
> [!NOTE]
90
90
> 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:
99
99
100
100
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).
101
101
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).
103
103
104
104
## Requirements
105
105
@@ -231,7 +231,7 @@ For more information on the `time_t` data type, see the [time](../../c-runtime-l
231
231
232
232
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.
233
233
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).
235
235
236
236
> [!NOTE]
237
237
> 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.
617
617
> [!NOTE]
618
618
> The `COleDateTime` class does not support leap seconds.
619
619
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).
621
621
622
622
For information on other member functions that query the value of this `COleDateTime` object, see the following member functions:
623
623
@@ -699,7 +699,7 @@ For more information about the operations that may set the status to invalid, se
699
699
700
700
-[operator +=, -=](#operator_add_eq_-_eq)
701
701
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).
703
703
704
704
### Example
705
705
@@ -737,7 +737,7 @@ For information on other member functions that query the value of this `COleDate
737
737
738
738
-[GetDayOfYear](#getdayofyear)
739
739
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).
741
741
742
742
### Example
743
743
@@ -756,7 +756,7 @@ DATE m_dt;
756
756
> [!CAUTION]
757
757
> 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.
758
758
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).
760
760
761
761
## <aname="m_status"></a> COleDateTime::m_status
762
762
@@ -811,7 +811,7 @@ For more information on the `time_t` data type, see the [time](../../c-runtime-l
811
811
812
812
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.
813
813
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).
@@ -837,7 +837,7 @@ The **+** and **-** operators will assert if the `COleDateTime` object is set to
837
837
838
838
For more information on the valid, invalid, and null status values, see the [m_status](#m_status) member variable.
839
839
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).
841
841
842
842
### Example
843
843
@@ -864,7 +864,7 @@ For more information on the valid, invalid, and null status values, see the [m_s
864
864
865
865
The **+=** and **-=** operators will assert if the `COleDateTime` object is set to null. See [COleDateTime Relational Operators](#coledatetime_relational_operators) for an example.
866
866
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).
868
868
869
869
## <aname="operator_date"></a> COleDateTime::operator DATE
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).
880
880
881
881
The `DATE` operator will assert if the `COleDateTime` object is set to null. See [COleDateTime Relational Operators](#coledatetime_relational_operators) for an example.
882
882
@@ -939,7 +939,7 @@ In the case of VAR_DATEVALUEONLY, the time value is set to time 0, or midnight.
939
939
940
940
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.
941
941
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).
943
943
944
944
## <aname="setdate"></a> COleDateTime::SetDate
945
945
@@ -1012,7 +1012,7 @@ For information on member functions that query the value of this `COleDateTime`
1012
1012
1013
1013
-[GetDayOfYear](#getdayofyear)
1014
1014
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).
1016
1016
1017
1017
### Example
1018
1018
@@ -1096,7 +1096,7 @@ For information on member functions that query the value of this `COleDateTime`
1096
1096
1097
1097
-[GetDayOfYear](#getdayofyear)
1098
1098
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).
1100
1100
1101
1101
### Example
1102
1102
@@ -1189,7 +1189,7 @@ For information on member functions that query the value of this `COleDateTime`
1189
1189
1190
1190
- [GetDayOfYear](#getdayofyear)
1191
1191
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).
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/coledatetimespan-class.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ A `COleDateTimeSpan` keeps time in days.
65
65
66
66
`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).
67
67
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).
69
69
70
70
## Requirements
71
71
@@ -134,7 +134,7 @@ All of these constructors create new `COleDateTimeSpan` objects initialized to t
134
134
135
135
The status of the new `COleDateTimeSpan` object is set to valid.
136
136
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).
138
138
139
139
### Example
140
140
@@ -375,7 +375,7 @@ The status of a `COleDateTimeSpan` object is invalid in the following cases:
375
375
376
376
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).
377
377
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).
@@ -575,7 +575,7 @@ For more information about the operations that may set the status to invalid, se
575
575
> [!CAUTION]
576
576
> 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.
577
577
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).
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/crect-class.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -284,15 +284,15 @@ Specifies the bottom-right position of `CRect`.
284
284
285
285
### Remarks
286
286
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.
288
288
289
289
The `CRect`(`const RECT&`) and `CRect`(`LPCRECT`) constructors perform a [CopyRect](#copyrect). The other constructors initialize the member variables of the object directly.
290
290
291
291
### Example
292
292
293
293
```cpp
294
-
// default constructor doesn't initialize!
295
-
CRect rectUnknown;
294
+
// default constructor is equivalent to CRect(0, 0, 0, 0)
0 commit comments