Skip to content

Commit b146c67

Browse files
DennisLee-DennisLeemairaw
authored andcommitted
1436790/1438462: Part 42: 20 files with MSDN link fixes. (dotnet#10641)
* Another 20 files with MSDN link fixes. * Revert "Another 20 files with MSDN link fixes." This reverts commit a8690ed. * Another 20 files with MSDN link fixes. * Apply suggestions from code review Accepting all of Maira's autocommittable suggestions. Co-Authored-By: DennisLee-DennisLee <v-dele@microsoft.com> * Correcting 2 [How to: Create a New WPF Application Project] links.
1 parent 6f78270 commit b146c67

20 files changed

+26
-30
lines changed

docs/framework/wpf/advanced/walkthrough-hosting-a-win32-control-in-wpf.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ Windows Presentation Foundation (WPF) provides a rich environment for creating a
134134

135135
The user can also select an item in the list box by clicking on it, just as they would for a conventional Win32 application. The displayed data is updated each time the user changes the state of the list box by selecting, adding, or appending an item.
136136

137-
To append items, send the list box an [`LB_ADDSTRING` message](https://msdn.microsoft.com/library/windows/desktop/bb775181(v=vs.85).aspx). To delete items, send [`LB_GETCURSEL`](https://msdn.microsoft.com/library/windows/desktop/bb775197(v=vs.85).aspx) to get the index of the current selection and then [`LB_DELETESTRING`](https://msdn.microsoft.com/library/windows/desktop/bb775183(v=vs.85).aspx) to delete the item. The sample also sends [`LB_GETCOUNT`](https://msdn.microsoft.com/library/windows/desktop/bb775195(v=vs.85).aspx), and uses the returned value to update the display that shows the number of items. Both these instances of [`SendMessage`](https://msdn.microsoft.com/library/windows/desktop/ms644950(v=vs.85).aspx) use one of the PInvoke declarations discussed in the previous section.
137+
To append items, send the list box an [`LB_ADDSTRING` message](/windows/desktop/Controls/lb-addstring). To delete items, send [`LB_GETCURSEL`](/windows/desktop/Controls/lb-getcursel) to get the index of the current selection and then [`LB_DELETESTRING`](/windows/desktop/Controls/lb-deletestring) to delete the item. The sample also sends [`LB_GETCOUNT`](/windows/desktop/Controls/lb-getcount), and uses the returned value to update the display that shows the number of items. Both these instances of [`SendMessage`](/windows/desktop/api/winuser/nf-winuser-sendmessage) use one of the PInvoke declarations discussed in the previous section.
138138

139139
[!code-csharp[WPFHostingWin32Control#AppendDeleteText](../../../../samples/snippets/csharp/VS_Snippets_Wpf/WPFHostingWin32Control/CSharp/Page1.xaml.cs#appenddeletetext)]
140140
[!code-vb[WPFHostingWin32Control#AppendDeleteText](../../../../samples/snippets/visualbasic/VS_Snippets_Wpf/WPFHostingWin32Control/VisualBasic/Page1.xaml.vb#appenddeletetext)]
141141

142-
When the user selects an item or changes their selection, the control notifies the host window by sending it a [`WM_COMMAND` message](https://msdn.microsoft.com/library/windows/desktop/ms647591(v=vs.85).aspx), which raises the <xref:System.Windows.Interop.HwndHost.MessageHook> event for the page. The handler receives the same information as the main window procedure of the host window. It also passes a reference to a Boolean value, `handled`. You set `handled` to `true` to indicate that you have handled the message and no further processing is needed.
142+
When the user selects an item or changes their selection, the control notifies the host window by sending it a [`WM_COMMAND` message](/windows/desktop/menurc/wm-command), which raises the <xref:System.Windows.Interop.HwndHost.MessageHook> event for the page. The handler receives the same information as the main window procedure of the host window. It also passes a reference to a Boolean value, `handled`. You set `handled` to `true` to indicate that you have handled the message and no further processing is needed.
143143

144-
[`WM_COMMAND`](https://msdn.microsoft.com/library/windows/desktop/ms647591(v=vs.85).aspx) is sent for a variety of reasons, so you must examine the notification ID to determine whether it is an event that you wish to handle. The ID is contained in the high word of the `wParam` parameter. The sample uses bitwise operators to extract the ID. If the user has made or changed their selection, the ID will be [`LBN_SELCHANGE`](https://msdn.microsoft.com/library/windows/desktop/bb775161(v=vs.85).aspx).
144+
[`WM_COMMAND`](/windows/desktop/menurc/wm-command) is sent for a variety of reasons, so you must examine the notification ID to determine whether it is an event that you wish to handle. The ID is contained in the high word of the `wParam` parameter. The sample uses bitwise operators to extract the ID. If the user has made or changed their selection, the ID will be [`LBN_SELCHANGE`](/windows/desktop/Controls/lbn-selchange).
145145

146-
When [`LBN_SELCHANGE`](https://msdn.microsoft.com/library/windows/desktop/bb775161(v=vs.85).aspx) is received, the sample gets the index of the selected item by sending the control a [`LB_GETCURSEL` message](https://msdn.microsoft.com/library/windows/desktop/bb775197(v=vs.85).aspx). To get the text, you first create a <xref:System.Text.StringBuilder>. You then send the control an [`LB_GETTEXT` message](https://msdn.microsoft.com/library/windows/desktop/bb761313(v=vs.85).aspx). Pass the empty <xref:System.Text.StringBuilder> object as the `wParam` parameter. When [`SendMessage`](https://msdn.microsoft.com/library/windows/desktop/ms644950(v=vs.85).aspx) returns, the <xref:System.Text.StringBuilder> will contain the text of the selected item. This use of [`SendMessage`](https://msdn.microsoft.com/library/windows/desktop/ms644950(v=vs.85).aspx) requires yet another PInvoke declaration.
146+
When [`LBN_SELCHANGE`](https://msdn.microsoft.com/library/windows/desktop/bb775161(v=vs.85).aspx) is received, the sample gets the index of the selected item by sending the control a [`LB_GETCURSEL` message](/windows/desktop/Controls/lb-getcursel). To get the text, you first create a <xref:System.Text.StringBuilder>. You then send the control an [`LB_GETTEXT` message](/windows/desktop/Controls/lb-gettext). Pass the empty <xref:System.Text.StringBuilder> object as the `wParam` parameter. When [`SendMessage`](/windows/desktop/api/winuser/nf-winuser-sendmessage) returns, the <xref:System.Text.StringBuilder> will contain the text of the selected item. This use of [`SendMessage`](/windows/desktop/api/winuser/nf-winuser-sendmessage) requires yet another PInvoke declaration.
147147

148148
Finally, set `handled` to `true` to indicate that the message has been handled.
149149

docs/framework/wpf/advanced/walkthrough-hosting-direct3d9-content-in-wpf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This walkthrough shows how to host Direct3D9 content in a Windows Presentation F
3333

3434
#### To create the WPF project
3535

36-
- Create a new WPF Application project in Visual C# named `D3DHost`. For more information, see [How to: Create a New WPF Application Project](https://msdn.microsoft.com/library/1f6aea7a-33e1-4d3f-8555-1daa42e95d82).
36+
- Create a new WPF Application project in Visual C# named `D3DHost`. For more information, see [Walkthrough: My first WPF desktop application](../getting-started/walkthrough-my-first-wpf-desktop-application.md).
3737

3838
MainWindow.xaml opens in the [!INCLUDE[wpfdesigner_current_short](../../../../includes/wpfdesigner-current-short-md.md)].
3939

docs/framework/wpf/advanced/walkthrough-localizing-a-hybrid-application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,5 @@ Your localized content is stored in a resource-only *satellite assembly*. Use th
171171
- <xref:System.Windows.Forms.Integration.ElementHost>
172172
- <xref:System.Windows.Forms.Integration.WindowsFormsHost>
173173
- [Localize an Application](../../../../docs/framework/wpf/advanced/how-to-localize-an-application.md)
174-
- [Walkthrough: Localizing Windows Forms](https://msdn.microsoft.com/library/9a96220d-a19b-4de0-9f48-01e5d82679e5)
174+
- [Walkthrough: Localizing Windows Forms](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2010/y99d1cd3(v=vs.100))
175175
- [Design XAML in Visual Studio](/visualstudio/designers/designing-xaml-in-visual-studio)

docs/framework/wpf/advanced/walkthrough-mapping-properties-using-the-elementhost-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ You need the following components to complete this walkthrough:
5656

5757
4. Open `Form1` in the Windows Forms Designer. Double-click the form to add an event handler for the <xref:System.Windows.Forms.Form.Load> event.
5858

59-
5. Return to the Windows Forms Designer and add an event handler for the form's <xref:System.Windows.Forms.Control.Resize> event. For more information, see [How to: Create Event Handlers Using the Designer](https://msdn.microsoft.com/library/8461e9b8-14e8-406f-936e-3726732b23d2).
59+
5. Return to the Windows Forms Designer and add an event handler for the form's <xref:System.Windows.Forms.Control.Resize> event. For more information, see [How to: Create Event Handlers Using the Designer](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2010/zwwsdtbk(v=vs.100)).
6060

6161
6. Declare an <xref:System.Windows.Forms.Integration.ElementHost> field in the `Form1` class.
6262

docs/framework/wpf/advanced/windows-forms-controls-and-equivalent-wpf-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Many [!INCLUDE[TLA#tla_winforms](../../../../includes/tlasharptla-winforms-md.md
8181
## See also
8282
- <xref:System.Windows.Forms.Integration.ElementHost>
8383
- <xref:System.Windows.Forms.Integration.WindowsFormsHost>
84-
- [WPF Designer for Windows Forms Developers](https://msdn.microsoft.com/library/47ad0909-e89b-4996-b4ac-874d929f94ca)
84+
- [WPF Designer for Windows Forms Developers](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2010/cc165605(v=vs.100))
8585
- [Walkthrough: Hosting a Windows Forms Control in WPF](../../../../docs/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf.md)
8686
- [Walkthrough: Hosting a WPF Composite Control in Windows Forms](../../../../docs/framework/wpf/advanced/walkthrough-hosting-a-wpf-composite-control-in-windows-forms.md)
8787
- [Migration and Interoperability](../../../../docs/framework/wpf/advanced/migration-and-interoperability.md)

docs/framework/wpf/advanced/xaml-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: 91580b89-a0a8-4889-aecb-fddf8e63175f
1212
A resource is an object that can be reused in different places in your application. Examples of resources include brushes and styles. This overview describes how to use resources in [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)]. You can also create and access resources by using code, or interchangeably between code and [!INCLUDE[TLA#tla_xaml](../../../../includes/tlasharptla-xaml-md.md)]. For more information, see [Resources and Code](../../../../docs/framework/wpf/advanced/resources-and-code.md).
1313

1414
> [!NOTE]
15-
> The resource files described in this topic are different than the resource files described in [WPF Application Resource, Content, and Data Files](../../../../docs/framework/wpf/app-development/wpf-application-resource-content-and-data-files.md) and different than the embedded or linked resources described in [Managing Application Resources (.NET)](https://msdn.microsoft.com/library/f2582734-8ada-4baa-8a7c-e2ef943ddf7e).
15+
> The resource files described in this topic are different than the resource files described in [WPF Application Resource, Content, and Data Files](../../../../docs/framework/wpf/app-development/wpf-application-resource-content-and-data-files.md) and different than the embedded or linked resources described in [Manage Application Resources (.NET)](/visualstudio/ide/managing-application-resources-dotnet).
1616
1717

1818
<a name="usingresources"></a>

docs/framework/wpf/app-development/application-management-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,5 +356,5 @@ All applications tend to share a common set of functionality that applies to app
356356
- [Navigation Overview](../../../../docs/framework/wpf/app-development/navigation-overview.md)
357357
- [WPF Application Resource, Content, and Data Files](../../../../docs/framework/wpf/app-development/wpf-application-resource-content-and-data-files.md)
358358
- [Pack URIs in WPF](../../../../docs/framework/wpf/app-development/pack-uris-in-wpf.md)
359-
- [Application Model: How-to Topics](https://msdn.microsoft.com/library/76771b09-3688-4d1c-8818-9b3f4cf39a30)
359+
- [Application Model: How-to Topics](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/ms749013(v=vs.100))
360360
- [Application Development](../../../../docs/framework/wpf/app-development/index.md)

docs/framework/wpf/app-development/build-and-deploy-how-to-topics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ The following topics show how to create project files for the various [!INCLUDE[
2424

2525
[Deploying a WPF Application](../../../../docs/framework/wpf/app-development/deploying-a-wpf-application-wpf.md)
2626

27-
[How to: Create a New WPF Application Project](https://msdn.microsoft.com/library/1f6aea7a-33e1-4d3f-8555-1daa42e95d82)
27+
[Walkthrough: My first WPF desktop application](../getting-started/walkthrough-my-first-wpf-desktop-application.md)
2828

29-
[How to: Create a New WPF Browser Application Project](https://msdn.microsoft.com/library/72ef4d90-e163-42a1-8df0-ea7ccfd1901f)
29+
[How to: Create a New WPF Browser Application Project](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2010/bb628663(v=vs.100))

docs/framework/wpf/app-development/building-a-wpf-application-wpf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Windows Presentation Foundation (WPF) applications can be built as [!INCLUDE[dnp
2020

2121
- Microsoft Build Engine (MSBuild). In addition to the code and XAML files, the application must contain an MSBuild project file. For more information, see "MSBuild".
2222

23-
- Visual Studio. Visual Studio is an integrated development environment that compiles WPF applications with MSBuild and includes a visual designer for creating UI. For more information, see [Application Development in Visual Studio](https://msdn.microsoft.com/library/97490c1b-a247-41fb-8f2c-bc4c201eff68) and [Design XAML in Visual Studio](/visualstudio/designers/designing-xaml-in-visual-studio).
23+
- Visual Studio. Visual Studio is an integrated development environment that compiles WPF applications with MSBuild and includes a visual designer for creating UI. For more information, see [Write and manage code using Visual Studio](/visualstudio/ide/index-writing-code) and [Design XAML in Visual Studio](/visualstudio/designers/designing-xaml-in-visual-studio).
2424

2525
<a name="The_Windows_Presentation_Foundation_Build_Pipeline"></a>
2626
## WPF Build Pipeline

docs/framework/wpf/app-development/deploying-a-wpf-application-wpf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ After Windows Presentation Foundation (WPF) applications are built, they need to
3838

3939
[!INCLUDE[TLA2#tla_wininstall](../../../../includes/tla2sharptla-wininstall-md.md)] simplifies the installation and uninstallation of applications, but it does not provide facilities for ensuring that installed applications are kept up-to-date from a versioning standpoint.
4040

41-
For more information about [!INCLUDE[TLA2#tla_wininstall](../../../../includes/tla2sharptla-wininstall-md.md)], see [Windows Installer Deployment](https://msdn.microsoft.com/library/121be21b-b916-43e2-8f10-8b080516d2a0).
41+
For more information about Windows Installer, see [Windows Installer Deployment](/visualstudio/deployment/deploying-applications-services-and-components#create-an-installer-package-windows-desktop).
4242

4343
<a name="ClickOnce_Deployment"></a>
4444
### ClickOnce Deployment
@@ -93,7 +93,7 @@ After Windows Presentation Foundation (WPF) applications are built, they need to
9393
> [!NOTE]
9494
> For more information about deployment and application manifests, see [Building a WPF Application](../../../../docs/framework/wpf/app-development/building-a-wpf-application-wpf.md).
9595
96-
These files are produced when an [!INCLUDE[TLA2#tla_xbap](../../../../includes/tla2sharptla-xbap-md.md)] is built. For more information, see [How to: Create a New WPF Browser Application Project](https://msdn.microsoft.com/library/72ef4d90-e163-42a1-8df0-ea7ccfd1901f). Like markup-only [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] pages, [!INCLUDE[TLA2#tla_xbap#plural](../../../../includes/tla2sharptla-xbapsharpplural-md.md)] are typically published to a Web server and viewed using [!INCLUDE[TLA2#tla_iegeneric](../../../../includes/tla2sharptla-iegeneric-md.md)].
96+
These files are produced when an [!INCLUDE[TLA2#tla_xbap](../../../../includes/tla2sharptla-xbap-md.md)] is built. For more information, see [How to: Create a New WPF Browser Application Project](https://docs.microsoft.com/previous-versions/visualstudio/visual-studio-2010/bb628663(v=vs.100)). Like markup-only [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] pages, [!INCLUDE[TLA2#tla_xbap#plural](../../../../includes/tla2sharptla-xbapsharpplural-md.md)] are typically published to a Web server and viewed using [!INCLUDE[TLA2#tla_iegeneric](../../../../includes/tla2sharptla-iegeneric-md.md)].
9797

9898
[!INCLUDE[TLA2#tla_xbap#plural](../../../../includes/tla2sharptla-xbapsharpplural-md.md)] can be deployed to clients using any of the deployment techniques. However, [!INCLUDE[TLA#tla_clickonce](../../../../includes/tlasharptla-clickonce-md.md)] is recommended since it provides the following capabilities:
9999

docs/framework/wpf/app-development/filterinputmessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ HRESULT FilterInputMessage( [in] MSG* pMsg ) ;
3737
The hosted application receives raw input messages by registering with the set of raw input devices (Human Interface Devices) returned by [GetRawInputDevices](../../../../docs/framework/wpf/app-development/getrawinputdevices.md).
3838

3939
## See also
40-
- [WM_INPUT Notification](https://msdn.microsoft.com/library/default.asp?url=/library/winui/winui/windowsuserinterface/userinput/rawinput/rawinputreference/rawinputmessages/wm_input.asp)
40+
- [WM_INPUT message](/windows/desktop/inputdev/wm-input)

docs/framework/wpf/app-development/how-to-use-an-application-scope-resource-dictionary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.assetid: 53857682-bd2c-4f2c-8f25-1307d0b451a2
1414
This example shows how to define and use an application-scope custom resource dictionary.
1515

1616
## Example
17-
<xref:System.Windows.Application> exposes an application-scope store for shared resources: <xref:System.Windows.Application.Resources%2A>. By default, the <xref:System.Windows.Application.Resources%2A> property is initialized with an instance of the <xref:System.Windows.ResourceDictionary> type. You use this instance when you get and set application-scope properties using <xref:System.Windows.Application.Resources%2A>. For more information, see [How to: Get and Set an Application-Scope Resource](https://msdn.microsoft.com/library/39e0420c-c9fc-47dc-8956-fdd95b214095).
17+
<xref:System.Windows.Application> exposes an application-scope store for shared resources: <xref:System.Windows.Application.Resources%2A>. By default, the <xref:System.Windows.Application.Resources%2A> property is initialized with an instance of the <xref:System.Windows.ResourceDictionary> type. You use this instance when you get and set application-scope properties using <xref:System.Windows.Application.Resources%2A>. For more information, see [How to: Get and Set an Application-Scope Resource](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/aa348547(v=vs.100)).
1818

1919
If you have multiple resources that you set using <xref:System.Windows.Application.Resources%2A>, you can instead use a custom resource dictionary to store those resources and set <xref:System.Windows.Application.Resources%2A> with it instead. The following shows how you declare a custom resource dictionary using XAML.
2020

docs/framework/wpf/app-development/ienumrawinputdevic-next.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ helpviewer_keywords:
66
ms.assetid: 3698b44d-510e-4d18-b32b-85f17188ee26
77
---
88
# IEnumRAWINPUTDEVIC:Next
9-
Enumerates the next `celt` [RAWINPUTDEVICE](https://msdn.microsoft.com/library/default.asp?url=/library/winui/winui/windowsuserinterface/userinput/rawinput/rawinputreference/rawinputstructures/rawinputdevice.asp) structures in the enumerator's list, returning them in `rgelt` along with the actual number of enumerated elements in `pceltFetched`.
9+
Enumerates the next `celt` [RAWINPUTDEVICE](/windows/desktop/api/winuser/ns-winuser-rawinputdevice) structures in the enumerator's list, returning them in `rgelt` along with the actual number of enumerated elements in `pceltFetched`.
1010

1111
## Syntax
1212

@@ -20,7 +20,7 @@ HRESULT Next(
2020
#### Parameters
2121
`celt`
2222

23-
[in] Number of [RAWINPUTDEVICE](https://msdn.microsoft.com/library/default.asp?url=/library/winui/winui/windowsuserinterface/userinput/rawinput/rawinputreference/rawinputstructures/rawinputdevice.asp) structures returned in `rgelt`.
23+
[in] Number of [RAWINPUTDEVICE](/windows/desktop/api/winuser/ns-winuser-rawinputdevice) structures returned in `rgelt`.
2424

2525
`rgelt`
2626

docs/framework/wpf/app-development/ienumrawinputdevice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ This interface enumerates the raw input devices, and is only used by Presentatio
2121
|[IEnumRAWINPUTDEVIC:Clone](../../../../docs/framework/wpf/app-development/ienumrawinputdevic-clone.md)|Creates another raw input device enumerator with the same state as the current enumerator to iterate over the same list.|
2222

2323
## See also
24-
- [About Raw Input](https://msdn.microsoft.com/library/default.asp?url=/library/winui/winui/windowsuserinterface/userinput/rawinput/aboutrawinput.asp)
24+
- [About Raw Input](/windows/desktop/inputdev/about-raw-input)

0 commit comments

Comments
 (0)