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
0 commit comments