Skip to content

Commit 1a760e0

Browse files
CC57126: Fixing minimun Value in get_Sides method
Hello, @mikeblome, This proposed file change comes from https://github.com/MicrosoftDocs/cpp-docs.zh-cn/pull/14/files?utf8=%E2%9C%93&diff=split&w=1 . Line MicrosoftDocs#52 Could you review this contribution and help to merge if agreed? Many thanks in advance.
1 parent da7b753 commit 1a760e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/atl/adding-a-property-to-the-control-atl-tutorial-part-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ms.workload: ["cplusplus"]
4949

5050
[!code-cpp[NVC_ATL_Windowing#46](../atl/codesnippet/cpp/adding-a-property-to-the-control-atl-tutorial-part-3_3.cpp)]
5151

52-
The `get_Sides` method returns the current value of the `Sides` property through the `pVal` pointer. In the `put_Sides` method, the code ensures the user is setting the `Sides` property to an acceptable value. The minimum must be 2, and because an array of points will be used for each side, 100 is a reasonable limit for a maximum value.
52+
The `get_Sides` method returns the current value of the `Sides` property through the `pVal` pointer. In the `put_Sides` method, the code ensures the user is setting the `Sides` property to an acceptable value. The minimum must be 3, and because an array of points will be used for each side, 100 is a reasonable limit for a maximum value.
5353

5454
You now have a property called `Sides`. In the next step, you will change the drawing code to use it.
5555

0 commit comments

Comments
 (0)