Skip to content

Commit 286bb0f

Browse files
TaojunshenMugBergerFriesbradlitterellopbld17colin-home
authored
9/16/2022 AM Publish (#4524)
* Updated C6101 Mirror of my public PR. Added an example. Added proper spacing between headers and code blocks, matched formatting to my other PRs * Updated C6101 Minor changes in response to Acrolinx report * Updated C6101 More Acrolinx changes, split a run-on sentence * Updated C26495 Matched formatting to my other PRs. Added more information to the example. * Updated C26495 Fixed spelling error * Updated C6101 Updated to the latest format * Updated C6101 Single backticks and InOut->Inout * Updated C26495 Updated to the new format NOTE: This warning has no code analysis name. Per @MichaelSquires instructions, I omitted the usual keywords and 'Code analysis name:' section to match * Update compiler-warning-level-4-c4464.md @corob-msft proposal. I don't warrant it shouldn't be worded in a better way. * Update compiler-warning-level-4-c4464.md typo fix * fix: delete unnecessary asterisk followup fix of MicrosoftDocs#4136 * optimize prime test * Update floating-point-support.md Explain what "ulp" stands for * Updates for cpp-docs 4161 * Update integritycheck-require-signature-check.md * alt-text * Update abstract-cpp-component-extensions.md * Add syntax highlighting to atl-mfc-shared * Updated C26495 Added code analysis ID * alt-text updates * customer fix * minor updates * Incorporate changes in rewrite Updates for style and clarity. Also give it an Acrolinx pass. * Clarify version support * Tweak language for minimum support * Add code style, comment @MugBergerFries It's a good idea to use code styling for mentions of variable or class names (especially when they're easily confused generic names like "value"). I also added a comment to the fixed code sample to amplify the change and what it was doing. * acrolinx * cleanup pass Co-authored-by: Samuel Berger <[email protected]> Co-authored-by: Brad Litterell <[email protected]> Co-authored-by: opbld17 <[email protected]> Co-authored-by: Colin Robertson <[email protected]> Co-authored-by: opbld16 <[email protected]> Co-authored-by: Kisaragi <[email protected]> Co-authored-by: Courtney Wales <[email protected]> Co-authored-by: opbld15 <[email protected]> Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Bryan Gold <[email protected]> Co-authored-by: Edward Breeveld <[email protected]> Co-authored-by: Jeff Borsecnik <[email protected]> Co-authored-by: jsuther1974 <[email protected]> Co-authored-by: Austin Morton <[email protected]> Co-authored-by: Jak Koke <[email protected]> Co-authored-by: HO-COOH <[email protected]> Co-authored-by: prmerger-automator[bot] <40007230+prmerger-automator[bot]@users.noreply.github.com> Co-authored-by: James Barnett <[email protected]> Co-authored-by: Dennis Rea <[email protected]>
1 parent 58dd89a commit 286bb0f

28 files changed

+331
-289
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)