Skip to content

Commit 4f8b097

Browse files
authored
Merge pull request MicrosoftDocs#4168 from HO-COOH/main
Add syntax highlighting to atl-mfc-shared
2 parents b5b9f24 + 8f6a4e7 commit 4f8b097

12 files changed

+172
-172
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This class represents a string object with a fixed character buffer.
1212

1313
## Syntax
1414

15-
```
15+
```cpp
1616
template<class StringType, int t_nChars>
1717
class CFixedStringT : private CFixedStringMgr, public StringType
1818
```
@@ -69,7 +69,7 @@ For more information on the customization of `CFixedStringT` and memory manageme
6969
7070
Constructs a `CFixedStringT` object.
7171
72-
```
72+
```cpp
7373
CFixedStringT() throw();
7474
explicit CFixedStringT(IAtlStringMgr* pStringMgr) throw();
7575
CFixedStringT(const CFixedStringT<StringType, t_nChars>& strSrc);
@@ -98,7 +98,7 @@ Because the constructors copy the input data into new allocated storage, you sho
9898

9999
Reinitializes an existing `CFixedStringT` object with new data.
100100

101-
```
101+
```cpp
102102
CFixedStringT<StringType, t_nChars>& operator=(
103103
const CFixedStringT<StringType, t_nChars>& strSrc);
104104
CFixedStringT<StringType, t_nChars>& operator=(const char* pszSrc);

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.assetid: 52861e3d-bf7e-481f-a240-90e88f76c490
1515
1616
## Syntax
1717

18-
```
18+
```cpp
1919
class CImage
2020
```
2121
@@ -148,7 +148,7 @@ You can use `CImage` from either MFC or ATL.
148148
149149
Displays bitmaps that have transparent or semitransparent pixels.
150150
151-
```
151+
```cpp
152152
BOOL AlphaBlend(
153153
HDC hDestDC,
154154
int xDest,
@@ -267,7 +267,7 @@ The bitmap can be either a non-DIB section bitmap or a DIB section bitmap. See [
267267
268268
Copies a bitmap from the source device context to this current device context.
269269
270-
```
270+
```cpp
271271
BOOL BitBlt(
272272
HDC hDestDC,
273273
int xDest,
@@ -343,7 +343,7 @@ For more information, see [`BitBlt`](/windows/win32/api/wingdi/nf-wingdi-bitblt)
343343

344344
Constructs a `CImage` object.
345345

346-
```
346+
```cpp
347347
CImage() throw();
348348
```
349349

@@ -359,7 +359,7 @@ Using global `CImage` objects in a DLL is not recommended. If you need to use a
359359

360360
Creates a `CImage` bitmap and attach it to the previously constructed `CImage` object.
361361

362-
```
362+
```cpp
363363
BOOL Create(
364364
int nWidth,
365365
int nHeight,
@@ -394,7 +394,7 @@ Nonzero if successful; otherwise 0.
394394
395395
Creates a `CImage` bitmap and attach it to the previously constructed `CImage` object.
396396
397-
```
397+
```cpp
398398
BOOL CreateEx(
399399
int nWidth,
400400
int nHeight,
@@ -458,7 +458,7 @@ void Destroy() throw();
458458

459459
Detaches a bitmap from a `CImage` object.
460460

461-
```
461+
```cpp
462462
HBITMAP Detach() throw();
463463
```
464464

@@ -470,7 +470,7 @@ A handle to the bitmap detached, or `NULL` if no bitmap is attached.
470470

471471
Copies a bitmap from the source device context to the current device context.
472472

473-
```
473+
```cpp
474474
BOOL Draw(
475475
HDC hDestDC,
476476
int xDest,
@@ -579,7 +579,7 @@ Using this pointer, along with the value returned by [`GetPitch`](#getpitch), yo
579579

580580
Retrieves the bits-per-pixel value.
581581

582-
```
582+
```cpp
583583
int GetBPP() const throw();
584584
```
585585

@@ -619,7 +619,7 @@ A pointer to the array of [`RGBQUAD`](/windows/win32/api/wingdi/ns-wingdi-rgbqua
619619
620620
Retrieves the device context that currently has the image selected into it.
621621
622-
```
622+
```cpp
623623
HDC GetDC() const throw();
624624
```
625625

@@ -635,7 +635,7 @@ For each call to `GetDC`, you must have a subsequent call to [`ReleaseDC`](#rele
635635

636636
Finds image formats available for saving images.
637637

638-
```
638+
```cpp
639639
static HRESULT GetExporterFilterString(
640640
CSimpleString& strExporters,
641641
CSimpleArray<GUID>& aguidFileTypes,
@@ -718,7 +718,7 @@ Use the default separator `|` if you pass this string to an MFC `CFileDialog` ob
718718

719719
Retrieves the height, in pixels, of an image.
720720

721-
```
721+
```cpp
722722
int GetHeight() const throw();
723723
```
724724

@@ -730,7 +730,7 @@ The height, in pixels, of an image.
730730

731731
Finds image formats available for loading images.
732732

733-
```
733+
```cpp
734734
static HRESULT GetImporterFilterString(
735735
CSimpleString& strImporters,
736736
CSimpleArray<GUID>& aguidFileTypes,
@@ -809,7 +809,7 @@ Use the default separator `|` if you pass this string to an MFC `CFileDialog` ob
809809

810810
Retrieves the maximum number of entries in the color table.
811811

812-
```
812+
```cpp
813813
int GetMaxColorTableEntries() const throw();
814814
```
815815

@@ -825,7 +825,7 @@ This method supports only DIB section bitmaps.
825825

826826
Retrieves the pitch of an image.
827827

828-
```
828+
```cpp
829829
int GetPitch() const throw();
830830
```
831831

@@ -846,7 +846,7 @@ Use `GetPitch` with [`GetBits`](#getbits) to find individual pixels of an image.
846846

847847
Retrieves the color of the pixel at the location specified by *x* and *y*.
848848

849-
```
849+
```cpp
850850
COLORREF GetPixel(int x, int y) const throw();
851851
```
852852
@@ -891,7 +891,7 @@ For formats that have less than 8 bits per pixel, this method returns the addres
891891

892892
Retrieves the indexed location of the transparent color in the color palette.
893893

894-
```
894+
```cpp
895895
LONG GetTransparentColor() const throw();
896896
```
897897

@@ -903,7 +903,7 @@ The index of the transparent color.
903903

904904
Retrieves the width, in pixels, of an image.
905905

906-
```
906+
```cpp
907907
int GetWidth() const throw();
908908
```
909909

@@ -915,7 +915,7 @@ The width of the bitmap, in pixels.
915915

916916
Determines if the attached bitmap is a DIB section.
917917

918-
```
918+
```cpp
919919
bool IsDIBSection() const throw();
920920
```
921921

@@ -945,7 +945,7 @@ If the bitmap is not a DIB section, you cannot use the following `CImage` method
945945

946946
Determines whether a bitmap's pixels are mapped to a color palette.
947947

948-
```
948+
```cpp
949949
bool IsIndexed() const throw();
950950
```
951951

@@ -964,7 +964,7 @@ This method returns `TRUE` only if the bitmap is 8-bit (256 colors) or less.
964964

965965
Determines if a bitmap is currently loaded.
966966

967-
```
967+
```cpp
968968
bool IsNull() const throw();
969969
```
970970

@@ -976,7 +976,7 @@ This method returns `TRUE` if a bitmap is not currently loaded; otherwise `FALSE
976976

977977
Indicates whether the application supports transparent bitmaps.
978978

979-
```
979+
```cpp
980980
static BOOL IsTransparencySupported() throw();
981981
```
982982

@@ -992,7 +992,7 @@ If the return value is nonzero, and transparency is supported, a call to [`Alpha
992992

993993
Loads an image.
994994

995-
```
995+
```cpp
996996
HRESULT Load(LPCTSTR pszFileName) throw();
997997
HRESULT Load(IStream* pStream) throw();
998998
```
@@ -1048,7 +1048,7 @@ The resource must be of type `BITMAP`.
10481048

10491049
Combines the color data for the source and destination bitmaps using the specified mask and raster operation.
10501050

1051-
```
1051+
```cpp
10521052
BOOL MaskBlt(
10531053
HDC hDestDC,
10541054
int xDest,
@@ -1147,7 +1147,7 @@ Use this operator to get the attached Windows GDI handle of the `CImage` object.
11471147
11481148
Performs a bit-block transfer from a rectangle in a source device context into a parallelogram in a destination device context.
11491149
1150-
```
1150+
```cpp
11511151
BOOL PlgBlt(
11521152
HDC hDestDC,
11531153
const POINT* pPoints,
@@ -1245,7 +1245,7 @@ This method must be called to free resources allocated by a global `CImage` obje
12451245

12461246
Saves an image to the specified stream or file on disk.
12471247

1248-
```
1248+
```cpp
12491249
HRESULT Save(
12501250
IStream* pStream,
12511251
REFGUID guidFileType) const throw();
@@ -1391,7 +1391,7 @@ The red, green, and blue parameters are each represented by a number between 0 a
13911391
13921392
Sets a color at a given indexed location as transparent.
13931393
1394-
```
1394+
```cpp
13951395
LONG SetTransparentColor(LONG iTransparentColor) throw();
13961396
```
13971397

@@ -1408,7 +1408,7 @@ The index of the color previously set as transparent.
14081408

14091409
Copies a bitmap from the source device context to this current device context.
14101410

1411-
```
1411+
```cpp
14121412
BOOL StretchBlt(
14131413
HDC hDestDC,
14141414
int xDest,
@@ -1491,7 +1491,7 @@ For more information, see [`StretchBlt`](/windows/win32/api/wingdi/nf-wingdi-str
14911491
14921492
Copies a bitmap from the source device context to this current device context.
14931493
1494-
```
1494+
```cpp
14951495
BOOL TransparentBlt(
14961496
HDC hDestDC,
14971497
int xDest,

0 commit comments

Comments
 (0)