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
The [CTime](../atl-mfc-shared/reference/ctime-class.md) class has constructors that accept system and file times from Win32. If you use `CTime` objects for these purposes, you must modify their initialization accordingly, as described in this article.
11
11
12
-
For information about the SYSTEMTIME structure, see [SYSTEMTIME](/windows/desktop/api/minwinbase/ns-minwinbase-systemtime). For information about the FILETIME structure, see [FILETIME](/windows/desktop/api/minwinbase/ns-minwinbase-filetime).
12
+
For information about the SYSTEMTIME structure, see [SYSTEMTIME](/windows/win32/api/minwinbase/ns-minwinbase-systemtime). For information about the FILETIME structure, see [FILETIME](/windows/win32/api/minwinbase/ns-minwinbase-filetime).
13
13
14
14
MFC still provides `CTime` constructors that take time arguments in the MS-DOS style, but, starting in MFC version 3.0, the `CTime` class also supports a constructor that takes a Win32 `SYSTEMTIME` structure and another that takes a Win32 `FILETIME` structure.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/implementation-of-a-custom-string-manager-basic-method.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ The easiest way to customize the memory allocation scheme for string data is to
10
10
11
11
-[CCRTHeap](../atl/reference/ccrtheap-class.md) Wraps the standard CRT heap functions ([malloc](../c-runtime-library/reference/malloc.md), [free](../c-runtime-library/reference/free.md), and [realloc](../c-runtime-library/reference/realloc.md))
12
12
13
-
-[CWin32Heap](../atl/reference/cwin32heap-class.md) Wraps a Win32 heap handle, using [HeapAlloc](/windows/desktop/api/heapapi/nf-heapapi-heapalloc), [HeapFree](/windows/desktop/api/heapapi/nf-heapapi-heapfree), and [HeapRealloc](/windows/desktop/api/heapapi/nf-heapapi-heaprealloc)
13
+
-[CWin32Heap](../atl/reference/cwin32heap-class.md) Wraps a Win32 heap handle, using [HeapAlloc](/windows/win32/api/heapapi/nf-heapapi-heapalloc), [HeapFree](/windows/win32/api/heapapi/nf-heapapi-heapfree), and [HeapRealloc](/windows/win32/api/heapapi/nf-heapapi-heaprealloc)
14
14
15
-
-[CLocalHeap](../atl/reference/clocalheap-class.md) Wraps the Win32 APIs: [LocalAlloc](/windows/desktop/api/winbase/nf-winbase-localalloc), [LocalFree](/windows/desktop/api/winbase/nf-winbase-localfree), and [LocalRealloc](/windows/desktop/api/winbase/nf-winbase-localrealloc)
15
+
-[CLocalHeap](../atl/reference/clocalheap-class.md) Wraps the Win32 APIs: [LocalAlloc](/windows/win32/api/winbase/nf-winbase-localalloc), [LocalFree](/windows/win32/api/winbase/nf-winbase-localfree), and [LocalRealloc](/windows/win32/api/winbase/nf-winbase-localrealloc)
16
16
17
-
-[CGlobalHeap](../atl/reference/cglobalheap-class.md) Wraps the Win32 APIs: [GlobalAlloc](/windows/desktop/api/winbase/nf-winbase-globalalloc), [GlobalFree](/windows/desktop/api/winbase/nf-winbase-globalfree), and [GlobalRealloc](/windows/desktop/api/winbase/nf-winbase-globalrealloc).
17
+
-[CGlobalHeap](../atl/reference/cglobalheap-class.md) Wraps the Win32 APIs: [GlobalAlloc](/windows/win32/api/winbase/nf-winbase-globalalloc), [GlobalFree](/windows/win32/api/winbase/nf-winbase-globalfree), and [GlobalRealloc](/windows/win32/api/winbase/nf-winbase-globalrealloc).
18
18
19
-
-[CComHeap](../atl/reference/ccomheap-class.md) Wraps the COM Task Allocator APIs: [CoTaskMemAlloc](/windows/desktop/api/combaseapi/nf-combaseapi-cotaskmemalloc), [CoTaskMemFree](/windows/desktop/api/combaseapi/nf-combaseapi-cotaskmemfree), and [CoTaskMemRealloc](/windows/desktop/api/combaseapi/nf-combaseapi-cotaskmemrealloc)
19
+
-[CComHeap](../atl/reference/ccomheap-class.md) Wraps the COM Task Allocator APIs: [CoTaskMemAlloc](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemalloc), [CoTaskMemFree](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemfree), and [CoTaskMemRealloc](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemrealloc)
20
20
21
21
For the purpose of string memory management, the most useful class is `CWin32Heap` because it allows you to create multiple independent heaps. For example, if you wanted to use a separate heap just for strings, you could do the following:
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/cfiletime-class.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ The following static const member variables are provided to simplify calculation
77
77
|Day|Hour \* 24|
78
78
|Week|Day \* 7|
79
79
80
-
**Note** Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on the Windows NT FAT file system, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (the access date). On NTFS, access time has a resolution of 1 hour. Furthermore, FAT records times on disk in local time, but NTFS records times on disk in UTC. For more information, see [File Times](/windows/desktop/SysInfo/file-times).
80
+
**Note** Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on the Windows NT FAT file system, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (the access date). On NTFS, access time has a resolution of 1 hour. Furthermore, FAT records times on disk in local time, but NTFS records times on disk in UTC. For more information, see [File Times](/windows/win32/SysInfo/file-times).
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/cimage-class.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -309,7 +309,7 @@ The logical x-coordinate of the upper left corner of the destination rectangle.
309
309
The logical y-coordinate of the upper left corner of the destination rectangle.
310
310
311
311
*dwROP*<br/>
312
-
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](/windows/desktop/api/wingdi/nf-wingdi-bitblt) in the Windows SDK for a list of other raster-operation codes and their descriptions.
312
+
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](/windows/win32/api/wingdi/nf-wingdi-bitblt) in the Windows SDK for a list of other raster-operation codes and their descriptions.
313
313
314
314
*pointDest*<br/>
315
315
A [POINT](/previous-versions/dd162805\(v=vs.85\)) structure indicating the upper left corner of the destination rectangle.
@@ -338,7 +338,7 @@ Nonzero if successful; otherwise zero.
338
338
339
339
### Remarks
340
340
341
-
For more information, see [BitBlt](/windows/desktop/api/wingdi/nf-wingdi-bitblt) in the Windows SDK.
341
+
For more information, see [BitBlt](/windows/win32/api/wingdi/nf-wingdi-bitblt) in the Windows SDK.
342
342
343
343
## <aname="cimage"></a> CImage::CImage
344
344
@@ -614,7 +614,7 @@ The color table index of the first entry to retrieve.
614
614
The number of color table entries to retrieve.
615
615
616
616
*prgbColors*<br/>
617
-
A pointer to the array of [RGBQUAD](/windows/desktop/api/wingdi/ns-wingdi-tagrgbquad) structures to retrieve the color table entries.
617
+
A pointer to the array of [RGBQUAD](/windows/win32/api/wingdi/ns-wingdi-rgbquad) structures to retrieve the color table entries.
618
618
619
619
## <a name="getdc"></a> CImage::GetDC
620
620
@@ -1216,7 +1216,7 @@ Nonzero if successful, otherwise 0.
1216
1216
1217
1217
If *hbmMask* identifies a valid monochrome bitmap, `PlgBit` uses this bitmap to mask the bits of color data from the source rectangle.
1218
1218
1219
-
This method applies to Windows NT, versions 4.0 and later only. See [PlgBlt](/windows/desktop/api/wingdi/nf-wingdi-plgblt) in the Windows SDK for more detailed information.
1219
+
This method applies to Windows NT, versions 4.0 and later only. See [PlgBlt](/windows/win32/api/wingdi/nf-wingdi-plgblt) in the Windows SDK for more detailed information.
1220
1220
1221
1221
## <a name="releasedc"></a> CImage::ReleaseDC
1222
1222
@@ -1306,7 +1306,7 @@ The color table index of the first entry to set.
1306
1306
The number of color table entries to set.
1307
1307
1308
1308
*prgbColors*<br/>
1309
-
A pointer to the array of [RGBQUAD](/windows/desktop/api/wingdi/ns-wingdi-tagrgbquad) structures to set the color table entries.
1309
+
A pointer to the array of [RGBQUAD](/windows/win32/api/wingdi/ns-wingdi-rgbquad) structures to set the color table entries.
1310
1310
1311
1311
### Remarks
1312
1312
@@ -1460,7 +1460,7 @@ The width, in logical units, of the destination rectangle.
1460
1460
The height, in logical units, of the destination rectangle.
1461
1461
1462
1462
*dwROP*<br/>
1463
-
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](/windows/desktop/api/wingdi/nf-wingdi-bitblt) in the Windows SDK for a list of other raster-operation codes and their descriptions.
1463
+
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](/windows/win32/api/wingdi/nf-wingdi-bitblt) in the Windows SDK for a list of other raster-operation codes and their descriptions.
1464
1464
1465
1465
*rectDest*<br/>
1466
1466
A reference to a [RECT](/previous-versions/dd162897\(v=vs.85\)) structure, identifying the destination.
@@ -1486,7 +1486,7 @@ Nonzero if successful, otherwise 0.
1486
1486
1487
1487
### Remarks
1488
1488
1489
-
For more information, see [StretchBlt](/windows/desktop/api/wingdi/nf-wingdi-stretchblt) in the Windows SDK.
1489
+
For more information, see [StretchBlt](/windows/win32/api/wingdi/nf-wingdi-stretchblt) in the Windows SDK.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/classes-shared-by-mfc-and-atl.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ The following table lists the classes shared between MFC and ATL.
16
16
|[CImage](../../atl-mfc-shared/reference/cimage-class.md)|Provides enhanced bitmap support, including the ability to load and save images in JPEG, GIF, BMP, and Portable Network Graphics (PNG) formats.|atlimage.h|
17
17
|[COleDateTime](../../atl-mfc-shared/reference/coledatetime-class.md)|Encapsulates the DATE data type used in OLE automation.|atlcomtime.h|
18
18
|[COleDateTimeSpan](../../atl-mfc-shared/reference/coledatetimespan-class.md)|Represents a relative time, a time span.|atlcomtime.h|
19
-
|[CPoint](../../atl-mfc-shared/reference/cpoint-class.md)|A class similar to the Windows [POINT](/windows/desktop/api/windef/ns-windef-tagpoint) structure that also includes member functions to manipulate `CPoint` and `POINT` structures.|atltypes.h|
20
-
|[CRect](../../atl-mfc-shared/reference/crect-class.md)|A class similar to a Windows [RECT](/windows/desktop/api/windef/ns-windef-tagrect) structure that also includes member functions to manipulate `CRect` objects and Windows `RECT` structures.|atltypes.h|
19
+
|[CPoint](../../atl-mfc-shared/reference/cpoint-class.md)|A class similar to the Windows [POINT](/windows/win32/api/windef/ns-windef-point) structure that also includes member functions to manipulate `CPoint` and `POINT` structures.|atltypes.h|
20
+
|[CRect](../../atl-mfc-shared/reference/crect-class.md)|A class similar to a Windows [RECT](/windows/win32/api/windef/ns-windef-rect) structure that also includes member functions to manipulate `CRect` objects and Windows `RECT` structures.|atltypes.h|
21
21
|[CSimpleStringT](../../atl-mfc-shared/reference/csimplestringt-class.md)|Represents a `CSimpleStringT` object.|atlsimpstr.h|
22
-
|[CSize](../../atl-mfc-shared/reference/csize-class.md)|A class similar to the Windows [SIZE](/windows/desktop/api/windef/ns-windef-tagsize) structure, which implements a relative coordinate or position.|atltypes.h|
22
+
|[CSize](../../atl-mfc-shared/reference/csize-class.md)|A class similar to the Windows [SIZE](/windows/win32/api/windef/ns-windef-size) structure, which implements a relative coordinate or position.|atltypes.h|
23
23
|[CStrBufT](../../atl-mfc-shared/reference/cstrbuft-class.md)|Provides automatic resource cleanup for `GetBuffer` and `ReleaseBuffer` calls on a existing `CStringT` object.|atlsimpstr.h|
24
24
|[CStringData](../../atl-mfc-shared/reference/cstringdata-class.md)|Represents the data of a string object.|atlsimpstr.h|
25
25
|[CStringT](../../atl-mfc-shared/reference/cstringt-class.md)|Represents a `CStringT` object.|cstringt.h (MFC dependent) atlstr.h (MFC independent)|
0 commit comments