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/accessing-all-members-of-a-collection.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ The MFC array collection classes — both template-based and not — use indexes
55
55
56
56
-[Iterating a map](#_core_to_iterate_a_map)
57
57
58
-
### To iterate an array
58
+
### <aname="_core_to_iterate_an_array"></a> To iterate an array
59
59
60
60
1. Use sequential index numbers with the `GetAt` member function:
61
61
@@ -69,15 +69,15 @@ The MFC array collection classes — both template-based and not — use indexes
69
69
70
70
This operator exists in both **const** and non-**const** versions. The **const** version, which is invoked for **const** arrays, can appear only on the right side of an assignment statement.
71
71
72
-
### To iterate a list
72
+
### <aname="_core_to_iterate_a_list"></a> To iterate a list
73
73
74
74
1. Use the member functions `GetHeadPosition` and `GetNext` to work your way through the list:
This example uses a typed pointer list to contain pointers to `CPerson` objects. The list declaration resembles the one for the array in the procedure [To iterate an array](#_core_to_iterate_an_array) but is derived from class `CObList`. `GetNext` returns a pointer to a `CPerson` object.
79
79
80
-
### To iterate a map
80
+
### <aname="_core_to_iterate_a_map"></a> To iterate a map
81
81
82
82
1. Use `GetStartPosition` to get to the beginning of the map and `GetNextAssoc` to repeatedly get the next key and value from the map, as shown by the following example:
Copy file name to clipboardExpand all lines: docs/mfc/activex-controls-on-the-internet.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
@@ -216,7 +216,7 @@ ActiveX controls are the updated version of the OLE control specification. Contr
216
216
217
217
You will update the ready state as your code is downloaded by calling [COleControl::InternalSetReadyState](../mfc/reference/colecontrol-class.md#colecontrol__internalsetreadystate). One place you could call `InternalSetReadyState` is from the `OnProgress` override of `CDataPathProperty`-derived class.
218
218
219
-
Then, follow the steps in [Creating a New ActiveX Control](#_core_how_do_i_create_a_new_activex_control.3f).
219
+
220
220
221
221
## See Also
222
222
[MFC Internet Programming Tasks](../mfc/mfc-internet-programming-tasks.md)
Copy file name to clipboardExpand all lines: docs/mfc/application-design-choices.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
@@ -48,9 +48,9 @@ This article discusses some of the design issues to consider when programming fo
48
48
49
49
-[Client or Server Application](#_core_client_or_server_application)
50
50
51
-
-[The Web Page: HTML, Active Documents, ActiveX Controls](#_core_the_web_page.3a_.html.2c_.activex_documents.2c_.activex_controls)
51
+
-[](#_core_the_web_page)
52
52
53
-
-[Browser or Stand-Alone Application](#_core_browser_or_stand.2d.alone_application)
53
+
-[Browser or Stand-Alone Application](#_core_browser_or_standalone)
54
54
55
55
-[COM on the Internet](#_core_com_on_the_internet)
56
56
@@ -70,14 +70,14 @@ This article discusses some of the design issues to consider when programming fo
70
70
## <aname="_core_client_or_server_application"></a> Client or Server Application
71
71
Your application may run on a client computer or on a server computer. Your application may also be stored on a server, and then downloaded across the Internet and run on a client computer. MFC WinInet classes are used for client applications to download files. MFC and asynchronous moniker classes are used to download files and control properties. Classes for ActiveX controls and Active documents are used for client applications and for applications that are downloaded from the server to run on a client.
72
72
73
-
## <aname="_core_the_web_page.3a_.html.2c_.activex_documents.2c_.activex_controls"></a> The Web Page: HTML, Active Documents, ActiveX Controls
73
+
## <aname="_core_the_web_page"></a> The Web Page: HTML, Active Documents, ActiveX Controls
74
74
Microsoft offers several ways of providing content on a Web page. Web pages can use standard HTML or HTML extensions, such as the object tag, to provide dynamic content such as ActiveX controls.
75
75
76
76
Web browsers typically display HTML pages. Active documents can also display your application's data in the simple point-and-click interface of a COM-enabled browser. Your Active document server can display your document, full frame in the entire client area, with its own menus and toolbars.
77
77
78
78
ActiveX controls you write can be downloaded asynchronously from the server and displayed on a Web page. You can use a scripting language such as VBScript to perform client-side validation before sending information to the server.
79
79
80
-
## <aname="_core_browser_or_stand.2d.alone_application"></a> Browser or Stand-Alone Application
80
+
## <aname="_core_browser_or_standalone"></a> Browser or Stand-Alone Application
81
81
You can write ActiveX controls that are embedded in an HTML page and Active document servers that are viewed in a browser. You can write HTML pages that contain a button to submit a request to run your ISAPI application on a Web server. You can write a stand-alone application that uses Internet protocols to download files and display the information to your user, without ever using a browser application.
82
82
83
83
## <aname="_core_com_on_the_internet"></a> COM on the Internet
Copy file name to clipboardExpand all lines: docs/mfc/collections.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ translation.priority.ht:
48
48
# Collections
49
49
The Microsoft Foundation Class Library provides collection classes to manage groups of objects. These classes are of two types:
50
50
51
-
-[Collection classes created from C++ templates](#_core_the_template.2d.based_collection_classes)
51
+
-[Collection classes created from C++ templates](#_core_the_template_based_collection_classes)
52
52
53
53
-[Collection classes not created from templates](#_core_the_collection_classes_not_based_on_templates)
54
54
@@ -72,7 +72,7 @@ The Microsoft Foundation Class Library provides collection classes to manage gro
72
72
73
73
A map is a collection that associates a key object with a value object.
74
74
75
-
## <aname="_core_the_template.2d.based_collection_classes"></a> The Template-Based Collection Classes
75
+
## <aname="_core_the_template_based_collection_classes"></a> The Template-Based Collection Classes
76
76
The easiest way to implement a type-safe collection that contains objects of any type is to use one of the MFC template-based classes. For examples of these classes, see the MFC sample [COLLECT](../top/visual-cpp-samples.md).
77
77
78
78
The following table lists the MFC template-based collection classes.
Copy file name to clipboardExpand all lines: docs/mfc/command-routing.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
@@ -52,7 +52,7 @@ Your responsibility in working with commands is limited to making message-map co
52
52
53
53
How expensive is this routing mechanism Compared to what your handler does in response to a command, the cost of the routing is low. Bear in mind that the framework generates commands only when the user interacts with a user-interface object.
54
54
55
-
### Standard Command Route
55
+
### <aname="_core_standard_command_route"></a> Standard Command Route
56
56
57
57
|When an object of this type receives a command . . .|It gives itself and other command-target objects a chance to handle the command in this order:|
Copy file name to clipboardExpand all lines: docs/mfc/containers-advanced-features.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,11 @@ translation.priority.ht:
43
43
# Containers: Advanced Features
44
44
This article describes the steps necessary to incorporate optional advanced features into existing container applications. These features are:
45
45
46
-
-[An application that is both a container and a server](#_core_creating_a_container.2f.server_application)
46
+
-[An application that is both a container and a server](#_core_creating_a_container_server_application)
47
47
48
48
-[An OLE link to an embedded object](#_core_links_to_embedded_objects)
49
49
50
-
## <aname="_core_creating_a_container.2f.server_application"></a> Creating a Container/Server Application
50
+
## <aname="_core_creating_a_container_server_application"></a> Creating a Container/Server Application
51
51
A container/server application is an application that acts as both a container and a server. Microsoft Word for Windows is an example of this. You can embed Word for Windows documents in other applications, and you can also embed items in Word for Windows documents. The process for modifying your container application to be both a container and a full server (you cannot create a combination container/miniserver application) is similar to the process for creating a full server.
52
52
53
53
The article [Servers: Implementing a Server](../mfc/servers-implementing-a-server.md) lists a number of tasks required to implement a server application. If you convert a container application to a container/server application, then you need to perform some of those same tasks, adding code to the container. The following lists the important things to consider:
Copy file name to clipboardExpand all lines: docs/mfc/deleting-all-objects-in-a-cobject-collection.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ This article explains how to delete all objects in a collection (without deletin
54
54
55
55
-[A map](#_core_to_delete_all_elements_in_a_map)
56
56
57
-
#### To delete all objects in a list of pointers to CObject
57
+
#### <aname="_core_to_delete_all_objects_in_a_list_of_pointers_to_cobject"></a> To delete all objects in a list of pointers to CObject
58
58
59
59
1. Use `GetHeadPosition` and `GetNext` to iterate through the list.
60
60
@@ -70,7 +70,7 @@ This article explains how to delete all objects in a collection (without deletin
70
70
71
71
Notice the difference between deleting an element's object and removing the element itself. Removing an element from the list merely removes the list's reference to the object. The object still exists in memory. When you delete an object, it ceases to exist and its memory is reclaimed. Thus, it is important to remove an element immediately after the element's object has been deleted so that the list won't try to access objects that no longer exist.
72
72
73
-
#### To delete all elements in an array
73
+
#### <aname="_core_to_delete_all_elements_in_an_array"></a> To delete all elements in an array
74
74
75
75
1. Use `GetSize` and integer index values to iterate through the array.
76
76
@@ -84,7 +84,7 @@ This article explains how to delete all objects in a collection (without deletin
84
84
85
85
As with the list example above, you can call `RemoveAll` to remove all elements in an array or `RemoveAt` to remove an individual element.
86
86
87
-
#### To delete all elements in a map
87
+
#### <aname="_core_to_delete_all_elements_in_a_map"></a> To delete all elements in a map
88
88
89
89
1. Use `GetStartPosition` and `GetNextAssoc` to iterate through the array.
Copy file name to clipboardExpand all lines: docs/mfc/docking-and-floating-toolbars.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ The Microsoft Foundation Class Library supports dockable toolbars. A dockable to
68
68
69
69
-[Dynamically resizing the toolbar](#_core_dynamically_resizing_the_toolbar)
70
70
71
-
-[Setting wrap positions for a fixed-style toolbar](#_core_setting_wrap_positions_for_a_fixed.2d.style_toolbar)
71
+
-[Setting wrap positions for a fixed-style toolbar](#_core_setting_wrap_positions_for_a_fixed_style_toolbar)
72
72
73
73
See the MFC General sample [DOCKTOOL](../top/visual-cpp-samples.md) for examples.
74
74
@@ -113,7 +113,7 @@ The Microsoft Foundation Class Library supports dockable toolbars. A dockable to
113
113
114
114
You can also use [CToolBar::GetButtonStyle](../mfc/reference/ctoolbar-class.md#ctoolbar__getbuttonstyle) to return a state and style for buttons on your toolbars. A button's style determines how the button appears and how it responds to user input; the state tells whether the button is in a wrapped state.
115
115
116
-
## <aname="_core_setting_wrap_positions_for_a_fixed.2d.style_toolbar"></a> Setting Wrap Positions for a Fixed-Style Toolbar
116
+
## <aname="_core_setting_wrap_positions_for_a_fixed_style_toolbar"></a> Setting Wrap Positions for a Fixed-Style Toolbar
117
117
For a toolbar with the size fixed style, designate toolbar button indexes at which the toolbar will wrap. The following code shows how to do this in your main frame window's `OnCreate` override:
0 commit comments