@@ -206,7 +206,7 @@ void CMyDlg::OnPaint()
206206
207207Copies the ` lpSrcRect ` rectangle into ` CRect ` .
208208
209- ```
209+ ``` cpp
210210void CopyRect (LPCRECT lpSrcRect) throw();
211211```
212212
@@ -330,7 +330,7 @@ ASSERT(rect5 == rect4);
330330
331331`DeflateRect` deflates `CRect` by moving its sides toward its center.
332332
333- ```
333+ ```cpp
334334void DeflateRect(int x, int y) throw();
335335void DeflateRect(SIZE size) throw();
336336void DeflateRect(LPCRECT lpRect) throw();
@@ -456,7 +456,7 @@ ASSERT(nHt == 40);
456456
457457`InflateRect` inflates `CRect` by moving its sides away from its center.
458458
459- ```
459+ ```cpp
460460void InflateRect(int x, int y) throw();
461461void InflateRect(SIZE size) throw();
462462void InflateRect(LPCRECT lpRect) throw();
@@ -611,7 +611,7 @@ ASSERT(!rectNotNull.IsRectNull());
611611
612612Call this function to move the rectangle to the absolute x-coordinate specified by * x* .
613613
614- ```
614+ ``` cpp
615615void MoveToX (int x) throw();
616616```
617617
@@ -634,7 +634,7 @@ ASSERT(rect == CRect(10, 0, 110, 100));
634634
635635Call this function to move the rectangle to the absolute x- and y-coordinates specified.
636636
637- ```
637+ ``` cpp
638638void MoveToXY (int x, int y) throw();
639639void MoveToXY(POINT point) throw();
640640```
@@ -663,7 +663,7 @@ ASSERT(rect == CRect(10, 10, 110, 110));
663663
664664Call this function to move the rectangle to the absolute y-coordinate specified by * y* .
665665
666- ```
666+ ``` cpp
667667void MoveToY (int y) throw();
668668```
669669
@@ -685,7 +685,7 @@ ASSERT(rect == CRect(0, 10, 100, 110));
685685
686686Normalizes ` CRect ` so that both the height and width are positive.
687687
688- ```
688+ ``` cpp
689689void NormalizeRect () throw();
690690```
691691
@@ -710,7 +710,7 @@ ASSERT(rect1 == rect2);
710710
711711Moves `CRect` by the specified offsets.
712712
713- ```
713+ ```cpp
714714void OffsetRect(int x, int y) throw();
715715void OffsetRect(POINT point) throw();
716716void OffsetRect(SIZE size) throw();
@@ -774,7 +774,7 @@ See the example for [CRect::operator LPCRECT](#operator_lpcrect).
774774
775775Assigns *srcRect* to `CRect`.
776776
777- ```
777+ ```cpp
778778void operator=(const RECT& srcRect) throw();
779779```
780780
@@ -877,7 +877,7 @@ ASSERT(rect3 != test);
877877
878878The first two overloads move `CRect` by the specified offsets.
879879
880- ```
880+ ```cpp
881881void operator+=(POINT point) throw();
882882void operator+=(SIZE size) throw();
883883void operator+=(LPCRECT lpRect) throw();
@@ -915,7 +915,7 @@ ASSERT(rect1 == rect2);
915915
916916The first two overloads move `CRect` by the specified offsets.
917917
918- ```
918+ ```cpp
919919void operator-=(POINT point) throw();
920920void operator-=(SIZE size) throw();
921921void operator-=(LPCRECT lpRect) throw();
@@ -953,7 +953,7 @@ ASSERT(rect1 == rectResult);
953953
954954Sets `CRect` equal to the intersection of `CRect` and `rect`.
955955
956- ```
956+ ```cpp
957957void operator&=(const RECT& rect) throw();
958958```
959959
@@ -977,7 +977,7 @@ See the example for [CRect::IntersectRect](#intersectrect).
977977
978978Sets ` CRect ` equal to the union of ` CRect ` and ` rect ` .
979979
980- ```
980+ ``` cpp
981981void operator |=(const RECT& rect) throw ();
982982```
983983
@@ -1219,7 +1219,7 @@ ASSERT(rect.PtInRect(pt));
12191219
12201220Sets the dimensions of ` CRect ` to the specified coordinates.
12211221
1222- ```
1222+ ``` cpp
12231223void SetRect (int x1, int y1, int x2, int y2) throw();
12241224```
12251225
@@ -1249,7 +1249,7 @@ ASSERT(rect == CRect(256, 256, 512, 512));
12491249
12501250Makes ` CRect ` a null rectangle by setting all coordinates to zero.
12511251
1252- ```
1252+ ``` cpp
12531253void SetRectEmpty () throw();
12541254```
12551255
0 commit comments