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
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.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,9 @@ A [CString](../atl-mfc-shared/using-cstring.md) object contains character string
33
33
34
34
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`.
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*`.
@@ -144,8 +144,8 @@ Through `CImage`, you have access to the actual bits of a DIB section. You can u
144
144
You can use `CImage` from either MFC or ATL.
145
145
146
146
> [!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/>
149
149
> Likewise, you must include `atlimage.h` before you include `atlimpl.cpp`. To accomplish this easily, include `atlimage.h` in your `stdafx.h`.
150
150
151
151
## Requirements
@@ -243,7 +243,7 @@ Nonzero if successful; otherwise 0.
243
243
244
244
Alpha-blend bitmaps support color blending on a per-pixel basis.
245
245
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.
247
247
248
248
## <aname="attach"></a> CImage::Attach
249
249
@@ -447,9 +447,9 @@ TRUE if successful. Otherwise FALSE.
447
447
448
448
### Example
449
449
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.
@@ -666,17 +666,16 @@ An array of GUIDs, with each element corresponding to one of the file types in t
666
666
*pszAllFilesDescription*<br/>
667
667
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.
668
668
669
-
For example:
669
+
For example:
670
670
671
-
```cpp
671
+
```cpp
672
672
//First filter in the list will be titled "All Image Files", and
673
673
//will accept files with any extension supported by any exporter.
674
674
CImage::GetExporterFilterString(
675
-
strExporters, aguidFileTypes,
675
+
strExporters, aguidFileTypes,
676
676
_T("All Image Files"));
677
677
```
678
678
679
-
680
679
*dwExclude*<br/>
681
680
Set of bit flags specifying which file types to exclude from the list. Allowable flags are:
682
681
@@ -762,17 +761,16 @@ An array of GUIDs, with each element corresponding to one of the file types in t
762
761
*pszAllFilesDescription*<br/>
763
762
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.
764
763
765
-
For example:
764
+
For example:
766
765
767
-
```cpp
766
+
```cpp
768
767
//First filter in the list will be titled "All Image Files", and
769
768
//will accept files with any extension supported by any importer.
770
769
CImage::GetImporterFilterString(
771
-
strImporters, aguidFileTypes,
770
+
strImporters, aguidFileTypes,
772
771
_T("All Image Files"));
773
772
```
774
773
775
-
776
774
*dwExclude*<br/>
777
775
Set of bit flags specifying which file types to exclude from the list. Allowable flags are:
778
776
@@ -1301,7 +1299,7 @@ Sets the red, green, blue (RGB) color values for a range of entries in the palet
1301
1299
1302
1300
```
1303
1301
void SetColorTable(
1304
-
UINT iFirstColor,
1302
+
UINT iFirstColor,
1305
1303
UINT nColors,
1306
1304
const RGBQUAD* prgbColors) throw();
1307
1305
```
@@ -1368,7 +1366,7 @@ The index of a color in the color palette.
1368
1366
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.
1369
1367
1370
1368
```
1371
-
void SetPixelRGB(
1369
+
void SetPixelRGB(
1372
1370
int x,
1373
1371
int y,
1374
1372
BYTE r,
@@ -1580,12 +1578,12 @@ TRUE if successful, otherwise FALSE.
1580
1578
1581
1579
`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.
1582
1580
1583
-
### Example
1581
+
### Example
1584
1582
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
1587
1585
// image using the images' current transparency settings
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/coledatetime-class.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,10 +189,10 @@ A `SYSTEMTIME` structure to be converted to a date/time value and copied into th
189
189
*filetimeSrc*<br/>
190
190
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.
Indicate the date and time values to be copied into the new `COleDateTime` object.
194
194
195
-
*wDosDate*, *wDosTime*
195
+
*wDosDate*, *wDosTime*<br/>
196
196
MS-DOS date and time values to be converted to a date/time value and copied into the new `COleDateTime` object.
197
197
198
198
*dbts*<br/>
@@ -294,13 +294,13 @@ If the status of this `COleDateTime` object is null, the return value is an empt
294
294
295
295
A brief description of the three forms for this function follows:
296
296
297
-
`Format`( *dwFlags*, *lcid*)
297
+
`Format`( *dwFlags*, *lcid*)<br/>
298
298
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.
299
299
300
-
`Format`( *lpszFormat*)
300
+
`Format`( *lpszFormat*)<br/>
301
301
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.
302
302
303
-
`Format`( *nFormatID*)
303
+
`Format`( *nFormatID*)<br/>
304
304
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*.
305
305
306
306
### Example
@@ -662,13 +662,13 @@ Returns the status of this `COleDateTime` value. If you call `GetStatus` on a `C
662
662
The return value is defined by the `DateTimeStatus` enumerated type, which is defined within the `COleDateTime` class.
663
663
664
664
```
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
+
};
672
672
```
673
673
674
674
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
891
891
Parses a string to read a date/time value.
892
892
893
893
```
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();
898
898
```
899
899
900
900
### Parameters
@@ -952,15 +952,15 @@ For more information about the bounds and implementation for `COleDateTime` valu
952
952
Sets the date of this `COleDateTime` object.
953
953
954
954
```
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();
959
959
```
960
960
961
961
### Parameters
962
962
963
-
*nYear*, *nMonth*, *nDay*
963
+
*nYear*, *nMonth*, *nDay*<br/>
964
964
Indicate the date components to be copied into this `COleDateTime` object.
965
965
966
966
### Return Value
@@ -1023,18 +1023,18 @@ For more information about the bounds for `COleDateTime` values, see the article
1023
1023
Sets the date and time of this `COleDateTime` object.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/coledatetimespan-class.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ COleDateTimeSpan(LONG lDays, int nHours, int nMins, int nSecs) throw();
126
126
*dblSpanSrc*<br/>
127
127
The number of days to be copied into the new `COleDateTimeSpan` object.
128
128
129
-
*lDays*, *nHours*, *nMins*, *nSecs*
129
+
*lDays*, *nHours*, *nMins*, *nSecs*<br/>
130
130
Indicate the day and time values to be copied into the new `COleDateTimeSpan` object.
131
131
132
132
### Remarks
@@ -186,10 +186,10 @@ Call these functions to create a formatted representation of the time-span value
186
186
187
187
A brief description of the forms for this function follows:
188
188
189
-
**Format(***pFormat***)**
189
+
**Format(***pFormat***)**<br/>
190
190
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.
191
191
192
-
**Format(***nID***)**
192
+
**Format(***nID***)**<br/>
193
193
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.
194
194
195
195
### Example
@@ -357,11 +357,11 @@ The status of this `COleDateTimeSpan` value.
357
357
The return value is defined by the `DateTimeSpanStatus` enumerated type, which is defined within the `COleDateTimeSpan` class.
358
358
359
359
```
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
+
};
365
365
```
366
366
367
367
For a brief description of these status values, see the following list:
0 commit comments