You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mfc/reference/ctreectrl-class.md
+16-34Lines changed: 16 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -739,13 +739,11 @@ This method sends the `TVM_GETITEMPARTRECT` message, which is described in the W
739
739
740
740
### Example
741
741
742
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
742
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example uses an accessibility identifier and the [`CTreeCtrl::MapAccIdToItem`](#mapaccidtoitem) method to retrieve a handle to the root tree-view item. Then the example uses the handle and the [`CTreeCtrl::GetItemPartRect`](#getitempartrect) method to draw a 3D rectangle around that item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We used the [`CTreeCtrl::MapItemToAccID`](#mapitemtoaccid) method to associate the root tree-view item with an accessibility identifier.
746
+
The next code example uses an accessibility identifier and the [`CTreeCtrl::MapAccIdToItem`](#mapaccidtoitem) method to retrieve a handle to the root tree-view item. Then the example uses the handle and the [`CTreeCtrl::GetItemPartRect`](#getitempartrect) method to draw a 3D rectangle around that item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We used the [`CTreeCtrl::MapItemToAccID`](#mapitemtoaccid) method to associate the root tree-view item with an accessibility identifier.
@@ -865,13 +863,11 @@ This method sends the [`TVM_GETNEXTITEM`](/windows/win32/Controls/tvm-getnextite
865
863
866
864
### Example
867
865
868
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. One or more of these variables are used in the next example.
866
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. One or more of these variables are used in the next example.
The following code example retrieves a handle to the last unexpanded tree-view node item, and then draws a 3D rectangle around that item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states.
870
+
The next code example retrieves a handle to the last unexpanded tree-view node item, and then draws a 3D rectangle around that item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states.
@@ -1345,13 +1341,11 @@ This method sends the [`TVM_MAPACCIDTOHTREEITEM`](/windows/win32/Controls/tvm-ma
1345
1341
1346
1342
### Example
1347
1343
1348
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
1344
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example uses an accessibility identifier and the [`CTreeCtrl::MapAccIdToItem`](#mapaccidtoitem) method to retrieve a handle to the root tree-view item. The example uses the handle and the [`CTreeCtrl::GetItemPartRect`](#getitempartrect) method to draw a 3D rectangle around that item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We used the [`CTreeCtrl::MapItemToAccID`](#mapitemtoaccid) method to associate the root tree-view item with an accessibility identifier.
1348
+
The next code example uses an accessibility identifier and the [`CTreeCtrl::MapAccIdToItem`](#mapaccidtoitem) method to retrieve a handle to the root tree-view item. The example uses the handle and the [`CTreeCtrl::GetItemPartRect`](#getitempartrect) method to draw a 3D rectangle around that item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We used the [`CTreeCtrl::MapItemToAccID`](#mapitemtoaccid) method to associate the root tree-view item with an accessibility identifier.
@@ -1380,13 +1374,11 @@ This method sends the [`TVM_MAPHTREEITEMTOACCID`](/windows/win32/Controls/tvm-ma
1380
1374
1381
1375
### Example
1382
1376
1383
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
1377
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example obtains an identification number for a tree-view control item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. This code example obtains a unique identification number for the root country/region node.
1381
+
The next code example obtains an identification number for a tree-view control item. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. This code example obtains a unique identification number for the root country/region node.
@@ -1527,13 +1519,11 @@ This method sends the [`TVM_SETAUTOSCROLLINFO`](/windows/win32/Controls/tvm-seta
1527
1519
1528
1520
### Example
1529
1521
1530
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
1522
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example sets the autoscroll behavior of the current tree-view control. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We intentionally made the tree-view control narrow so that it must automatically scroll to display the tree item that has the focus. The code example sets the tree-view control to automatically scroll 30 pixels per second every 5 seconds until the tree item is in view.
1526
+
The next code example sets the autoscroll behavior of the current tree-view control. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We intentionally made the tree-view control narrow so that it must automatically scroll to display the tree item that has the focus. The code example sets the tree-view control to automatically scroll 30 pixels per second every 5 seconds until the tree item is in view.
@@ -1624,13 +1612,11 @@ This method sends the [`TVM_SETEXTENDEDSTYLE`](/windows/win32/Controls/tvm-setex
1624
1612
1625
1613
### Example
1626
1614
1627
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
1615
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example adds the `TVS_EX_AUTOHSCROLL` extended style to the current tree-view control. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We intentionally made the tree-view control narrow so that it must automatically scroll to display the tree item that has the focus.
1619
+
The next code example adds the `TVS_EX_AUTOHSCROLL` extended style to the current tree-view control. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. We intentionally made the tree-view control narrow so that it must automatically scroll to display the tree item that has the focus.
@@ -1843,13 +1829,11 @@ This method sends the [`TVM_SETITEM`](/windows/win32/Controls/tvm-setitem) messa
1843
1829
1844
1830
### Example
1845
1831
1846
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
1832
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example is a trivial test to determine whether the [`CTreeCtrl::GetItemExpandedImageIndex`](#getitemexpandedimageindex) method returns the value set by the [`CTreeCtrl::SetItemExpandedImageIndex`](#setitemexpandedimageindex) method. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states.
1836
+
The next code example is a trivial test to determine whether the [`CTreeCtrl::GetItemExpandedImageIndex`](#getitemexpandedimageindex) method returns the value set by the [`CTreeCtrl::SetItemExpandedImageIndex`](#setitemexpandedimageindex) method. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states.
@@ -1974,13 +1958,11 @@ This method sends the [`TVM_SETITEM`](/windows/win32/Controls/tvm-setitem) messa
1974
1958
1975
1959
### Example
1976
1960
1977
-
The following code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
1961
+
The first code example defines a variable, `m_treeCtrl`, that is used to access the current tree-view control. The code example also defines an unsigned integer and several `HTREEITEM` variables. These variables are used in the next example.
The following code example sets a tree-view item to disabled state. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. This code example sets the Pennsylvania node to disabled state.
1965
+
The next code example sets a tree-view item to disabled state. In an earlier section of the code example, which is not shown, we created a tree-view that consists of a root country/region node for the United States, subnodes for the states of Pennsylvania and Washington, and tree items for cities in those states. This code example sets the Pennsylvania node to disabled state.
Copy file name to clipboardExpand all lines: docs/mfc/tn033-dll-version-of-mfc.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,7 +232,7 @@ When *`A.DLL`* is built, it's built with **`/DA_IMPL`** and when *`B.DLL`* is bu
232
232
233
233
This type of layering can't be done when using the built-in `AFX_EXT_CLASS` and `_AFXEXT` preprocessor symbols. The technique described above solves this problem in the same way MFC does. MFC uses this technique when building its OLE, Database, and Network MFC extension DLLs.
234
234
235
-
### Not Exporting the Entire Class
235
+
### Still Not Exporting the Entire Class
236
236
237
237
Again, you'll have to take special care when you aren't exporting an entire class. Ensure that the necessary data items created by the MFC macros are exported correctly. You can do it by redefining `AFX_DATA` to your specific class' macro. Redefine it whenever you're not exporting the entire class.
Copy file name to clipboardExpand all lines: docs/overview/whats-new-cpp-docs.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ In addition to the changes below, many articles were updated to prevent the mach
124
124
-[Compiler warnings C4400 Through C4599](../error-messages/compiler-warnings/compiler-warnings-c4400-through-c4599.md) - added some Visual Studio version 2017 diagnostics
125
125
-[Compiler warnings C4800 through C5999](../error-messages/compiler-warnings/compiler-warnings-c4800-through-c4999.md) - update Visual Studio 16.10 conformance improvements and new warnings; add new 16.10 warnings, version info; added some version 2017 diagnostics; add missing errors and warnings: C7000 - C7999, C4834
## C/C++ compiler intrinsics and assembly language
129
129
130
130
**Updated articles**
@@ -210,7 +210,7 @@ In addition to the changes below, many articles were updated to prevent the mach
210
210
-[Unicode support in the compiler and linker](../build/reference/unicode-support-in-the-compiler-and-linker.md) - add info about how to save using a different encoding
211
211
-[Use the Microsoft C++ toolset from the command line](../build/building-on-the-command-line.md) - updated for VS 2019
212
212
-[Walkthrough: Compile a C program on the command line](../build/walkthrough-compile-a-c-program-on-the-command-line.md) - Visual Studio 16.10 updates to C17 conformance
213
-
-[Walkthrough: Compiling a Native C++ Program on the Command Line](../build/walkthrough-compiling-a-native-cpp-program-on-the-command-line.md) - clarified notepad behavior when opening source file
213
+
-[Walkthrough: Compiling a Native C++ Program on the Command Line](../build/walkthrough-compiling-a-native-cpp-program-on-the-command-line.md) - clarified notepad behavior when opening source file
214
214
215
215
## C++ Standard Library (STL) reference
216
216
@@ -237,7 +237,7 @@ In addition to the changes below, many articles were updated to prevent the mach
237
237
238
238
**Updated articles**
239
239
240
-
-[C6031](../code-quality/c6031.md) - add note about ignoring a function's return value
240
+
-[C6031](../code-quality/c6031.md) - add note about ignoring a function's return value
0 commit comments