Skip to content

Commit 807049d

Browse files
authored
fix: ordered list
1 parent 97c2c0b commit 807049d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/atl/putting-the-control-on-a-web-page-atl-tutorial-part-7.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@ In this step, you add functionality to the control and script the Web page to re
1515

1616
### To add control features
1717

18-
1. Open PolyCtl.cpp and replace the following code:
19-
20-
```cpp
21-
if (PtInRegion(hRgn, xPos, yPos))
22-
Fire_ClickIn(xPos, yPos);
23-
else
24-
Fire_ClickOut(xPos, yPos);
25-
```
26-
27-
with
28-
29-
```cpp
30-
short temp = m_nSides;
31-
if (PtInRegion(hRgn, xPos, yPos))
32-
{
33-
Fire_ClickIn(xPos, yPos);
34-
put_Sides(++temp);
35-
}
36-
else
37-
{
38-
Fire_ClickOut(xPos, yPos);
39-
put_Sides(--temp);
40-
}
41-
```
18+
Open PolyCtl.cpp and replace the following code:
19+
20+
```cpp
21+
if (PtInRegion(hRgn, xPos, yPos))
22+
Fire_ClickIn(xPos, yPos);
23+
else
24+
Fire_ClickOut(xPos, yPos);
25+
```
26+
27+
with
28+
29+
```cpp
30+
short temp = m_nSides;
31+
if (PtInRegion(hRgn, xPos, yPos))
32+
{
33+
Fire_ClickIn(xPos, yPos);
34+
put_Sides(++temp);
35+
}
36+
else
37+
{
38+
Fire_ClickOut(xPos, yPos);
39+
put_Sides(--temp);
40+
}
41+
```
4242

4343
The shape will now add or remove sides depending on where you click.
4444

0 commit comments

Comments
 (0)