Skip to content

Commit 604a4bf

Browse files
authored
cleanup in ATL (MicrosoftDocs#126)
1 parent 13c3828 commit 604a4bf

File tree

145 files changed

+971
-1363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+971
-1363
lines changed

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

Lines changed: 72 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,21 @@ void CMyDlg::OnRButtonDown(UINT nFlags, CPoint point)
196196
Displays bitmaps that have transparent or semitransparent pixels.
197197

198198
```
199-
BOOL AlphaBlend(HDC hDestDC,
199+
BOOL AlphaBlend(
200+
HDC hDestDC,
200201
int xDest,
201202
int yDest,
202203
BYTE bSrcAlpha = 0xff,
203204
BYTE bBlendOp = AC_SRC_OVER) const throw();
204205
205-
BOOL AlphaBlend(HDC hDestDC,
206+
BOOL AlphaBlend(
207+
HDC hDestDC,
206208
const POINT& pointDest,
207209
BYTE bSrcAlpha = 0xff,
208210
BYTE bBlendOp = AC_SRC_OVER) const throw();
209211
210-
BOOL AlphaBlend(HDC hDestDC,
212+
BOOL AlphaBlend(
213+
HDC hDestDC,
211214
int xDest,
212215
int yDest,
213216
int nDestWidth,
@@ -219,7 +222,8 @@ BOOL AlphaBlend(HDC hDestDC,
219222
BYTE bSrcAlpha = 0xff,
220223
BYTE bBlendOp = AC_SRC_OVER);
221224
222-
BOOL AlphaBlend(HDC hDestDC,
225+
BOOL AlphaBlend(
226+
HDC hDestDC,
223227
const RECT& rectDest,
224228
const RECT& rectSrc,
225229
BYTE bSrcAlpha = 0xff,
@@ -304,16 +308,19 @@ void Attach(HBITMAP hBitmap, DIBOrientation eOrientation = DIBOR_DEFAULT) thro
304308
Copies a bitmap from the source device context to this current device context.
305309

306310
```
307-
BOOL BitBlt(HDC hDestDC,
311+
BOOL BitBlt(
312+
HDC hDestDC,
308313
int xDest,
309314
int yDest,
310315
DWORD dwROP = SRCCOPY) const throw();
311316
312-
BOOL BitBlt(HDC hDestDC,
317+
BOOL BitBlt(
318+
HDC hDestDC,
313319
const POINT& pointDest,
314320
DWORD dwROP = SRCCOPY) const throw();
315321
316-
BOOL BitBlt(HDC hDestDC,
322+
BOOL BitBlt(
323+
HDC hDestDC,
317324
int xDest,
318325
int yDest,
319326
int nDestWidth,
@@ -322,7 +329,8 @@ BOOL BitBlt(HDC hDestDC,
322329
int ySrc,
323330
DWORD dwROP = SRCCOPY) const throw();
324331
325-
BOOL BitBlt(HDC hDestDC,
332+
BOOL BitBlt(
333+
HDC hDestDC,
326334
const RECT& rectDest,
327335
const POINT& pointSrc,
328336
DWORD dwROP = SRCCOPY) const throw();
@@ -386,7 +394,8 @@ CImage() throw();
386394
Creates a `CImage` bitmap and attach it to the previously constructed `CImage` object.
387395

388396
```
389-
BOOL Create(int nWidth,
397+
BOOL Create(
398+
int nWidth,
390399
int nHeight,
391400
int nBPP,
392401
DWORD dwFlags = 0) throw();
@@ -417,7 +426,8 @@ BOOL Create(int nWidth,
417426
Creates a `CImage` bitmap and attach it to the previously constructed `CImage` object.
418427

419428
```
420-
BOOL CreateEx(int nWidth,
429+
BOOL CreateEx(
430+
int nWidth,
421431
int nHeight,
422432
int nBPP,
423433
DWORD eCompression,
@@ -486,7 +496,8 @@ HBITMAP Detach() throw();
486496
Copies a bitmap from the source device context to the current device context.
487497
488498
```
489-
BOOL Draw(HDC hDestDC,
499+
BOOL Draw(
500+
HDC hDestDC,
490501
int xDest,
491502
int yDest,
492503
int nDestWidth,
@@ -496,24 +507,29 @@ BOOL Draw(HDC hDestDC,
496507
int nSrcWidth,
497508
int nSrcHeight) const throw();
498509

499-
BOOL Draw(HDC hDestDC,
510+
BOOL Draw(
511+
HDC hDestDC,
500512
const RECT& rectDest,
501513
const RECT& rectSrc) const throw();
502514

503-
BOOL Draw(HDC hDestDC,
515+
BOOL Draw(
516+
HDC hDestDC,
504517
int xDest,
505518
int yDest) const throw();
506519

507-
BOOL Draw(HDC hDestDC,
520+
BOOL Draw(
521+
HDC hDestDC,
508522
const POINT& pointDest) const throw();
509523

510-
BOOL Draw(HDC hDestDC,
524+
BOOL Draw(
525+
HDC hDestDC,
511526
int xDest,
512527
int yDest,
513528
int nDestWidth,
514529
int nDestHeight) const throw();
515530

516-
BOOL Draw(HDC hDestDC,
531+
BOOL Draw(
532+
HDC hDestDC,
517533
const RECT& rectDest) const throw();
518534
```
519535
@@ -976,10 +992,12 @@ HRESULT Load(IStream* pStream) throw();
976992
Loads an image from a `BITMAP` resource.
977993
978994
```
979-
void LoadFromResource(HINSTANCE hInstance,
995+
void LoadFromResource(
996+
HINSTANCE hInstance,
980997
LPCTSTR pszResourceName) throw();
981998

982-
void LoadFromResource(HINSTANCE hInstance,
999+
void LoadFromResource(
1000+
HINSTANCE hInstance,
9831001
UINT nIDResource) throw();
9841002
```
9851003
@@ -1000,7 +1018,8 @@ void LoadFromResource(HINSTANCE hInstance,
10001018
Combines the color data for the source and destination bitmaps using the specified mask and raster operation.
10011019
10021020
```
1003-
BOOL MaskBlt(HDC hDestDC,
1021+
BOOL MaskBlt(
1022+
HDC hDestDC,
10041023
int xDest,
10051024
int yDest,
10061025
int nDestWidth,
@@ -1012,20 +1031,23 @@ BOOL MaskBlt(HDC hDestDC,
10121031
int yMask,
10131032
DWORD dwROP = SRCCOPY) const throw();
10141033

1015-
BOOL MaskBlt(HDC hDestDC,
1034+
BOOL MaskBlt(
1035+
HDC hDestDC,
10161036
const RECT& rectDest,
10171037
const POINT& pointSrc,
10181038
HBITMAP hbmMask,
10191039
const POINT& pointMask,
10201040
DWORD dwROP = SRCCOPY) const throw();
10211041

1022-
BOOL MaskBlt(HDC hDestDC,
1042+
BOOL MaskBlt(
1043+
HDC hDestDC,
10231044
int xDest,
10241045
int yDest,
10251046
HBITMAP hbmMask,
10261047
DWORD dwROP = SRCCOPY) const throw();
10271048

1028-
BOOL MaskBlt(HDC hDestDC,
1049+
BOOL MaskBlt(
1050+
HDC hDestDC,
10291051
const POINT& pointDest,
10301052
HBITMAP hbmMask,
10311053
DWORD dwROP = SRCCOPY) const throw();
@@ -1090,11 +1112,13 @@ BOOL MaskBlt(HDC hDestDC,
10901112
Performs a bit-block transfer from a rectangle in a source device context into a parallelogram in a destination device context.
10911113
10921114
```
1093-
BOOL PlgBlt(HDC hDestDC,
1115+
BOOL PlgBlt(
1116+
HDC hDestDC,
10941117
const POINT* pPoints,
10951118
HBITMAP hbmMask = NULL) const throw();
10961119

1097-
BOOL PlgBlt(HDC hDestDC,
1120+
BOOL PlgBlt(
1121+
HDC hDestDC,
10981122
const POINT* pPoints,
10991123
int xSrc,
11001124
int ySrc,
@@ -1104,7 +1128,8 @@ BOOL PlgBlt(HDC hDestDC,
11041128
int xMask = 0,
11051129
int yMask = 0) const throw();
11061130

1107-
BOOL PlgBlt(HDC hDestDC,
1131+
BOOL PlgBlt(
1132+
HDC hDestDC,
11081133
const POINT* pPoints,
11091134
const RECT& rectSrc,
11101135
HBITMAP hbmMask = NULL,
@@ -1215,9 +1240,10 @@ HRESULT Save(LPCTSTR pszFileName,
12151240
Sets the red, green, blue (RGB) color values for a range of entries in the palette of the DIB section.
12161241
12171242
```
1218-
void SetColorTable(UINT iFirstColor,
1219-
UINT nColors,
1220-
const RGBQUAD* prgbColors) throw();
1243+
void SetColorTable(
1244+
UINT iFirstColor,
1245+
UINT nColors,
1246+
const RGBQUAD* prgbColors) throw();
12211247
```
12221248
12231249
### Parameters
@@ -1274,7 +1300,8 @@ void SetPixelIndexed(int x, int y, int iIndex) throw();
12741300
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.
12751301
12761302
```
1277-
void SetPixelRGB(int x,
1303+
void SetPixelRGB(
1304+
int x,
12781305
int y,
12791306
BYTE r,
12801307
BYTE g,
@@ -1318,18 +1345,21 @@ LONG SetTransparentColor(LONG iTransparentColor) throw();
13181345
Copies a bitmap from the source device context to this current device context.
13191346
13201347
```
1321-
BOOL StretchBlt(HDC hDestDC,
1348+
BOOL StretchBlt(
1349+
HDC hDestDC,
13221350
int xDest,
13231351
int yDest,
13241352
int nDestWidth,
13251353
int nDestHeight,
13261354
DWORD dwROP = SRCCOPY) const throw();
13271355

1328-
BOOL StretchBlt(HDC hDestDC,
1356+
BOOL StretchBlt(
1357+
HDC hDestDC,
13291358
const RECT& rectDest,
13301359
DWORD dwROP = SRCCOPY) const throw();
13311360

1332-
BOOL StretchBlt(HDC hDestDC,
1361+
BOOL StretchBlt(
1362+
HDC hDestDC,
13331363
int xDest,
13341364
int yDest,
13351365
int nDestWidth,
@@ -1340,7 +1370,8 @@ BOOL StretchBlt(HDC hDestDC,
13401370
int nSrcHeight,
13411371
DWORD dwROP = SRCCOPY) const throw();
13421372

1343-
BOOL StretchBlt(HDC hDestDC,
1373+
BOOL StretchBlt(
1374+
HDC hDestDC,
13441375
const RECT& rectDest,
13451376
const RECT& rectSrc,
13461377
DWORD dwROP = SRCCOPY) const throw();
@@ -1393,18 +1424,21 @@ BOOL StretchBlt(HDC hDestDC,
13931424
Copies a bitmap from the source device context to this current device context.
13941425
13951426
```
1396-
BOOL TransparentBlt(HDC hDestDC,
1427+
BOOL TransparentBlt(
1428+
HDC hDestDC,
13971429
int xDest,
13981430
int yDest,
13991431
int nDestWidth,
14001432
int nDestHeight,
14011433
UINT crTransparent = CLR_INVALID) const throw();
14021434

1403-
BOOL TransparentBlt(HDC hDestDC,
1435+
BOOL TransparentBlt(
1436+
HDC hDestDC,
14041437
const RECT& rectDest,
14051438
UINT crTransparent = CLR_INVALID) const throw();
14061439

1407-
BOOL TransparentBlt(HDC hDestDC,
1440+
BOOL TransparentBlt(
1441+
HDC hDestDC,
14081442
int xDest,
14091443
int yDest,
14101444
int nDestWidth,
@@ -1415,7 +1449,8 @@ BOOL TransparentBlt(HDC hDestDC,
14151449
int nSrcHeight,
14161450
UINT crTransparent = CLR_INVALID) const throw();
14171451

1418-
BOOL TransparentBlt(HDC hDestDC,
1452+
BOOL TransparentBlt(
1453+
HDC hDestDC,
14191454
const RECT& rectDest,
14201455
const RECT& rectSrc,
14211456
UINT crTransparent = CLR_INVALID) const throw();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ class CPoint : public tagPOINT
8989
## Requirements
9090
**Header:** atltypes.h
9191

92-
## <a name="cpoint"></a> CPoint::CPoint Constructs a `CPoint` object.
92+
## <a name="cpoint"></a> CPoint::CPoint
93+
Constructs a `CPoint` object.
9394

9495
```
9596
CPoint() throw();
@@ -140,7 +141,6 @@ CPoint ptMFCBig(sHowBig);
140141

141142
DWORD dwSize;
142143
dwSize = MAKELONG(35, 95);
143-
144144

145145
CPoint ptFromDouble(dwSize);
146146
ASSERT(ptFromDouble == ptMFCHere);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ const CPoint& BottomRight() const throw();
164164
ASSERT(rect2 == CRect(10, 10, 180, 180));
165165
```
166166
167-
## <a name="centerpoint"></a> CRect::CenterPOINT Calculates the centerpoint of `CRect` by adding the left and right values and dividing by two, and adding the top and bottom values and dividing by two.
167+
## <a name="centerpoint"></a> CRect::CenterPOINT
168+
Calculates the centerpoint of `CRect` by adding the left and right values and dividing by two, and adding the top and bottom values and dividing by two.
168169
169170
```
170171
CPoint CenterPoint() const throw();

0 commit comments

Comments
 (0)