Skip to content

Commit 6b918be

Browse files
author
Michael Blome
committed
link fixes in mfc and fixes to code blocks that will silence false positives in the non-validating validation tool
1 parent a3bb8db commit 6b918be

File tree

87 files changed

+438
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+438
-176
lines changed

docs/mfc/accessing-all-members-of-a-collection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The MFC array collection classes — both template-based and not — use indexes
5555

5656
- [Iterating a map](#_core_to_iterate_a_map)
5757

58-
### To iterate an array
58+
### <a name="_core_to_iterate_an_array"></a> To iterate an array
5959

6060
1. Use sequential index numbers with the `GetAt` member function:
6161

@@ -69,15 +69,15 @@ The MFC array collection classes — both template-based and not — use indexes
6969

7070
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.
7171

72-
### To iterate a list
72+
### <a name="_core_to_iterate_a_list"></a> To iterate a list
7373

7474
1. Use the member functions `GetHeadPosition` and `GetNext` to work your way through the list:
7575

7676
[!code-cpp[NVC_MFCCollections#14](../mfc/codesnippet/cpp/accessing-all-members-of-a-collection_3.cpp)]
7777

7878
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.
7979

80-
### To iterate a map
80+
### <a name="_core_to_iterate_a_map"></a> To iterate a map
8181

8282
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:
8383

docs/mfc/activex-controls-on-the-internet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ActiveX controls are the updated version of the OLE control specification. Contr
216216

217217
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.
218218

219-
Then, follow the steps in [Creating a New ActiveX Control](#_core_how_do_i_create_a_new_activex_control.3f).
219+
220220

221221
## See Also
222222
[MFC Internet Programming Tasks](../mfc/mfc-internet-programming-tasks.md)

docs/mfc/application-design-choices.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ This article discusses some of the design issues to consider when programming fo
4848

4949
- [Client or Server Application](#_core_client_or_server_application)
5050

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)
5252

53-
- [Browser or Stand-Alone Application](#_core_browser_or_stand.2d.alone_application)
53+
- [Browser or Stand-Alone Application](#_core_browser_or_standalone)
5454

5555
- [COM on the Internet](#_core_com_on_the_internet)
5656

@@ -70,14 +70,14 @@ This article discusses some of the design issues to consider when programming fo
7070
## <a name="_core_client_or_server_application"></a> Client or Server Application
7171
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.
7272

73-
## <a name="_core_the_web_page.3a_.html.2c_.activex_documents.2c_.activex_controls"></a> The Web Page: HTML, Active Documents, ActiveX Controls
73+
## <a name="_core_the_web_page"></a> The Web Page: HTML, Active Documents, ActiveX Controls
7474
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.
7575

7676
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.
7777

7878
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.
7979

80-
## <a name="_core_browser_or_stand.2d.alone_application"></a> Browser or Stand-Alone Application
80+
## <a name="_core_browser_or_standalone"></a> Browser or Stand-Alone Application
8181
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.
8282

8383
## <a name="_core_com_on_the_internet"></a> COM on the Internet

docs/mfc/automation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ Automation (formerly known as OLE Automation) makes it possible for one applicat
104104
- [Add an Automation class](../mfc/automation-servers.md)
105105

106106
- [Use type libraries](../mfc/automation-clients-using-type-libraries.md)
107-
108-
- [Pass parameters in Automation](#_core_automation_topics)
109-
107+
110108
- [Access automation servers](../mfc/automation-servers.md)
111109

112110
- [Write automation clients in C++](../mfc/automation-clients.md)

docs/mfc/collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ translation.priority.ht:
4848
# Collections
4949
The Microsoft Foundation Class Library provides collection classes to manage groups of objects. These classes are of two types:
5050

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)
5252

5353
- [Collection classes not created from templates](#_core_the_collection_classes_not_based_on_templates)
5454

@@ -72,7 +72,7 @@ The Microsoft Foundation Class Library provides collection classes to manage gro
7272

7373
A map is a collection that associates a key object with a value object.
7474

75-
## <a name="_core_the_template.2d.based_collection_classes"></a> The Template-Based Collection Classes
75+
## <a name="_core_the_template_based_collection_classes"></a> The Template-Based Collection Classes
7676
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).
7777

7878
The following table lists the MFC template-based collection classes.

docs/mfc/command-routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Your responsibility in working with commands is limited to making message-map co
5252

5353
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.
5454

55-
### Standard Command Route
55+
### <a name="_core_standard_command_route"></a> Standard Command Route
5656

5757
|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:|
5858
|----------------------------------------------------------|-----------------------------------------------------------------------------------------------------|

docs/mfc/containers-advanced-features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ translation.priority.ht:
4343
# Containers: Advanced Features
4444
This article describes the steps necessary to incorporate optional advanced features into existing container applications. These features are:
4545

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)
4747

4848
- [An OLE link to an embedded object](#_core_links_to_embedded_objects)
4949

50-
## <a name="_core_creating_a_container.2f.server_application"></a> Creating a Container/Server Application
50+
## <a name="_core_creating_a_container_server_application"></a> Creating a Container/Server Application
5151
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.
5252

5353
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:

docs/mfc/controls-mfc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Controls are objects that users can interact with to enter or manipulate data. T
7272
## <a name="_core_finding_information_about_windows_common_controls"></a> Finding Information About Windows Common Controls
7373
The table below briefly describes each of the Windows common controls, including the control's MFC wrapper class.
7474

75-
### Windows Common Controls and MFC Classes
75+
### <a name="_core_windows_common_controls_and_mfc_classes"></a> Windows Common Controls and MFC Classes
7676

7777
|Control|MFC class|Description|New in Windows 95|
7878
|-------------|---------------|-----------------|------------------------|

docs/mfc/deleting-all-objects-in-a-cobject-collection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This article explains how to delete all objects in a collection (without deletin
5454

5555
- [A map](#_core_to_delete_all_elements_in_a_map)
5656

57-
#### To delete all objects in a list of pointers to CObject
57+
#### <a name="_core_to_delete_all_objects_in_a_list_of_pointers_to_cobject"></a> To delete all objects in a list of pointers to CObject
5858

5959
1. Use `GetHeadPosition` and `GetNext` to iterate through the list.
6060

@@ -70,7 +70,7 @@ This article explains how to delete all objects in a collection (without deletin
7070

7171
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.
7272

73-
#### To delete all elements in an array
73+
#### <a name="_core_to_delete_all_elements_in_an_array"></a> To delete all elements in an array
7474

7575
1. Use `GetSize` and integer index values to iterate through the array.
7676

@@ -84,7 +84,7 @@ This article explains how to delete all objects in a collection (without deletin
8484

8585
As with the list example above, you can call `RemoveAll` to remove all elements in an array or `RemoveAt` to remove an individual element.
8686

87-
#### To delete all elements in a map
87+
#### <a name="_core_to_delete_all_elements_in_a_map"></a> To delete all elements in a map
8888

8989
1. Use `GetStartPosition` and `GetNextAssoc` to iterate through the array.
9090

docs/mfc/docking-and-floating-toolbars.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The Microsoft Foundation Class Library supports dockable toolbars. A dockable to
6868

6969
- [Dynamically resizing the toolbar](#_core_dynamically_resizing_the_toolbar)
7070

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)
7272

7373
See the MFC General sample [DOCKTOOL](../top/visual-cpp-samples.md) for examples.
7474

@@ -113,7 +113,7 @@ The Microsoft Foundation Class Library supports dockable toolbars. A dockable to
113113

114114
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.
115115

116-
## <a name="_core_setting_wrap_positions_for_a_fixed.2d.style_toolbar"></a> Setting Wrap Positions for a Fixed-Style Toolbar
116+
## <a name="_core_setting_wrap_positions_for_a_fixed_style_toolbar"></a> Setting Wrap Positions for a Fixed-Style Toolbar
117117
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:
118118

119119
[!code-cpp[NVC_MFCDocViewSDI#10](../mfc/codesnippet/cpp/docking-and-floating-toolbars_1.cpp)]

0 commit comments

Comments
 (0)