Skip to content

Commit 9b6c55a

Browse files
authored
Merge pull request MicrosoftDocs#1293 from mikeblome/mb-links5
a few more high-occurrence shortID links
2 parents 7ce047a + 835b965 commit 9b6c55a

58 files changed

Lines changed: 123 additions & 123 deletions

File tree

Some content is hidden

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

docs/atl/reference/ccomcontrolbase-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ CComControlBase(HWND& h);
160160
```
161161

162162
### Remarks
163-
If the control is windowed, `~CComControlBase` destroys it by calling [DestroyWindow](https://msdn.microsoft.com/library/windows/desktop/ms632682).
163+
If the control is windowed, `~CComControlBase` destroys it by calling [DestroyWindow](/windows/desktop/api/winuser/nf-winuser-destroywindow).
164164

165165
## <a name="controlqueryinterface"></a> CComControlBase::ControlQueryInterface
166166
Retrieves a pointer to the requested interface.

docs/atl/reference/ccontainedwindowt-class.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,16 @@ HWND Create(
193193
[in] Specifies the name of the window. The default value is NULL.
194194

195195
*dwStyle*
196-
[in] The style of the window. The default value is WS_CHILD &#124; WS_VISIBLE. For a list of possible values, see [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) in the Windows SDK.
196+
[in] The style of the window. The default value is WS_CHILD &#124; WS_VISIBLE. For a list of possible values, see [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) in the Windows SDK.
197197

198198
*dwExStyle*
199-
[in] The extended window style. The default value is 0, meaning no extended style. For a list of possible values, see [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680) in the Windows SDK.
199+
[in] The extended window style. The default value is 0, meaning no extended style. For a list of possible values, see [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa) in the Windows SDK.
200200

201201
*MenuOrID*
202202
[in] For a child window, the window identifier. For a top-level window, a menu handle for the window. The default value is **0U**.
203203

204204
*lpCreateParam*
205-
[in] A pointer to window-creation data. For a full description, see the description for the final parameter to [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680).
205+
[in] A pointer to window-creation data. For a full description, see the description for the final parameter to [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa).
206206

207207
### Return Value
208208
If successful, the handle to the newly created window; otherwise, NULL.

docs/atl/reference/composite-control-global-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ ATLAPI_(BOOL) AtlAxWinInit();
419419
Nonzero if the initialization of the control hosting code was successful; otherwise FALSE.
420420

421421
### Remarks
422-
This function must be called before using the ATL control hosting API. Following a call to this function, the **"AtlAxWin"** window class can be used in calls to [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) or [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680), as described in the Windows SDK.
422+
This function must be called before using the ATL control hosting API. Following a call to this function, the **"AtlAxWin"** window class can be used in calls to [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) or [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa), as described in the Windows SDK.
423423

424424
## <a name="atlaxwinterm"></a> AtlAxWinTerm
425425
This function uninitializes ATL's control hosting code by unregistering the **"AtlAxWin80"** and **"AtlAxWinLic80"** window classes.

docs/atl/reference/cwindow-class.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@ HWND Create(
389389
[in] Specifies the name of the window. The default value is NULL.
390390

391391
*dwStyle*
392-
[in] The style of the window. The default value is 0, meaning no style is specified. For a list of possible values, see [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) in the Windows SDK.
392+
[in] The style of the window. The default value is 0, meaning no style is specified. For a list of possible values, see [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) in the Windows SDK.
393393

394394
*dwExStyle*
395-
[in] The extended window style. The default value is 0, meaning no extended style is specified. For a list of possible values, see [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680) in the Windows SDK.
395+
[in] The extended window style. The default value is 0, meaning no extended style is specified. For a list of possible values, see [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa) in the Windows SDK.
396396

397397
*MenuOrID*
398398
[in] A variable of type [_U_MENUorID](../../atl/reference/u-menuorid-class.md) specifying a handle to a menu or a window identifier. The default value is 0U.
@@ -406,7 +406,7 @@ HWND Create(
406406
### Remarks
407407
`CWindow::rcDefault` is defined as `__declspec(selectany) RECT CWindow::rcDefault = {CW_USEDEFAULT, CW_USEDEFAULT, 0, 0};`.
408408

409-
See [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) in the Windows SDK for more information.
409+
See [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) in the Windows SDK for more information.
410410

411411
**Note** If 0 is used as the value for the *MenuOrID* parameter, it must be specified as 0U (the default value) to avoid a compiler error.
412412

@@ -459,7 +459,7 @@ CWindow(HWND hWnd = NULL) throw();
459459
Initializes the [m_hWnd](#m_hwnd) member to *hWnd*, which by default is NULL.
460460

461461
> [!NOTE]
462-
> `CWindow::CWindow` does not create a window. Classes [CWindowImpl](../../atl/reference/cwindowimpl-class.md), [CContainedWindow](../../atl/reference/ccontainedwindowt-class.md), and [CDialogImpl](../../atl/reference/cdialogimpl-class.md) (all of which derive from `CWindow`) provide a method to create a window or dialog box, which is then assigned to `CWindow::m_hWnd`. You can also use the [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) Win32 function.
462+
> `CWindow::CWindow` does not create a window. Classes [CWindowImpl](../../atl/reference/cwindowimpl-class.md), [CContainedWindow](../../atl/reference/ccontainedwindowt-class.md), and [CDialogImpl](../../atl/reference/cdialogimpl-class.md) (all of which derive from `CWindow`) provide a method to create a window or dialog box, which is then assigned to `CWindow::m_hWnd`. You can also use the [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) Win32 function.
463463
464464
## <a name="deferwindowpos"></a> CWindow::DeferWindowPos
465465
Updates the specified multiple-window-position structure for the specified window.
@@ -486,7 +486,7 @@ BOOL DestroyWindow() throw();
486486
```
487487

488488
### Remarks
489-
See [DestroyWindow](https://msdn.microsoft.com/library/windows/desktop/ms632682) in the Windows SDK.
489+
See [DestroyWindow](/windows/desktop/api/winuser/nf-winuser-destroywindow) in the Windows SDK.
490490

491491
It does not destroy the `CWindow` object itself.
492492

@@ -1043,7 +1043,7 @@ LONG GetWindowLong(int nIndex) const throw();
10431043
```
10441044

10451045
### Remarks
1046-
See [GetWindowLong](https://msdn.microsoft.com/library/windows/desktop/ms633584) in the Windows SDK.
1046+
See [GetWindowLong](/windows/desktop/api/winuser/nf-winuser-getwindowlonga) in the Windows SDK.
10471047

10481048
> [!NOTE]
10491049
> To write code that is compatible with both 32-bit and 64-bit versions of Windows, use [CWindow::GetWindowLongPtr](#getwindowlongptr).
@@ -1170,7 +1170,7 @@ WORD GetWindowWord(int nIndex) const throw();
11701170
```
11711171

11721172
### Remarks
1173-
See [GetWindowLong](https://msdn.microsoft.com/library/windows/desktop/ms633584) in the Windows SDK.
1173+
See [GetWindowLong](/windows/desktop/api/winuser/nf-winuser-getwindowlonga) in the Windows SDK.
11741174

11751175
## <a name="gotodlgctrl"></a> CWindow::GotoDlgCtrl
11761176
Sets the keyboard focus to a control in the dialog box.
@@ -1448,13 +1448,13 @@ BOOL ModifyStyle(
14481448
[in] Specifies the window styles to be added during style modification.
14491449

14501450
*nFlags*
1451-
[in] Window-positioning flags. For a list of possible values, see the [SetWindowPos](https://msdn.microsoft.com/library/windows/desktop/ms633545) function in the Windows SDK.
1451+
[in] Window-positioning flags. For a list of possible values, see the [SetWindowPos](/windows/desktop/api/winuser/nf-winuser-setwindowpos) function in the Windows SDK.
14521452

14531453
### Return Value
14541454
TRUE if the window styles are modified; otherwise, FALSE.
14551455

14561456
### Remarks
1457-
Styles to be added or removed can be combined by using the bitwise OR ( &#124; ) operator. See the [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) function in the Windows SDKfor information about the available window styles.
1457+
Styles to be added or removed can be combined by using the bitwise OR ( &#124; ) operator. See the [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) function in the Windows SDKfor information about the available window styles.
14581458

14591459
If *nFlags* is nonzero, `ModifyStyle` calls the Win32 function `SetWindowPos`, and redraws the window by combining *nFlags* with the following four flags:
14601460

@@ -1489,13 +1489,13 @@ BOOL ModifyStyleEx(
14891489
[in] Specifies the extended styles to be added during style modification.
14901490

14911491
*nFlags*
1492-
[in] Window-positioning flags. For a list of possible values, see the [SetWindowPos](https://msdn.microsoft.com/library/windows/desktop/ms633545) function in the Windows SDK.
1492+
[in] Window-positioning flags. For a list of possible values, see the [SetWindowPos](/windows/desktop/api/winuser/nf-winuser-setwindowpos) function in the Windows SDK.
14931493

14941494
### Return Value
14951495
TRUE if the extended window styles are modified; otherwise, FALSE.
14961496

14971497
### Remarks
1498-
Styles to be added or removed can be combined by using the bitwise OR ( &#124; ) operator. See the [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680) function in the Windows SDKfor information about the available extended styles.
1498+
Styles to be added or removed can be combined by using the bitwise OR ( &#124; ) operator. See the [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa) function in the Windows SDKfor information about the available extended styles.
14991499

15001500
If *nFlags* is nonzero, `ModifyStyleEx` calls the Win32 function `SetWindowPos`, and redraws the window by combining *nFlags* with the following four flags:
15011501

@@ -2072,7 +2072,7 @@ LONG SetWindowLong(int nIndex, LONG dwNewLong) throw();
20722072
```
20732073

20742074
### Remarks
2075-
See [SetWindowLong](https://msdn.microsoft.com/library/windows/desktop/ms633591) in the Windows SDK.
2075+
See [SetWindowLong](/windows/desktop/api/winuser/nf-winuser-setwindowlonga) in the Windows SDK.
20762076

20772077
> [!NOTE]
20782078
> To write code that is compatible with both 32-bit and 64-bit versions of Windows, use [CWindow::SetWindowLongPtr](#setwindowlongptr).
@@ -2118,7 +2118,7 @@ BOOL SetWindowPos(
21182118
```
21192119

21202120
### Remarks
2121-
See [SetWindowPos](https://msdn.microsoft.com/library/windows/desktop/ms633545) in the Windows SDK.
2121+
See [SetWindowPos](/windows/desktop/api/winuser/nf-winuser-setwindowpos) in the Windows SDK.
21222122

21232123
The second version of this method uses a [RECT](https://msdn.microsoft.com/library/windows/desktop/dd162897) structure to set the window's new position, width, and height.
21242124

@@ -2153,7 +2153,7 @@ WORD SetWindowWord(int nIndex, WORD wNewWord) throw();
21532153
```
21542154

21552155
### Remarks
2156-
See [SetWindowLong](https://msdn.microsoft.com/library/windows/desktop/ms633591) in the Windows SDK.
2156+
See [SetWindowLong](/windows/desktop/api/winuser/nf-winuser-setwindowlonga) in the Windows SDK.
21572157

21582158
## <a name="showcaret"></a> CWindow::ShowCaret
21592159
Displays the system caret.

docs/atl/reference/cwindowimpl-class.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,16 @@ HWND Create(
133133
[in] Specifies the name of the window. The default value is NULL.
134134

135135
*dwStyle*
136-
[in] The style of the window. This value is combined with the style provided by the traits class for the window. The default value gives the traits class full control over the style. For a list of possible values, see [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) in the Windows SDK.
136+
[in] The style of the window. This value is combined with the style provided by the traits class for the window. The default value gives the traits class full control over the style. For a list of possible values, see [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) in the Windows SDK.
137137

138138
*dwExStyle*
139-
[in] The extended window style. This value is combined with the style provided by the traits class for the window. The default value gives the traits class full control over the style. For a list of possible values, see [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680) in the Windows SDK.
139+
[in] The extended window style. This value is combined with the style provided by the traits class for the window. The default value gives the traits class full control over the style. For a list of possible values, see [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa) in the Windows SDK.
140140

141141
*MenuOrID*
142142
[in] For a child window, the window identifier. For a top-level window, a menu handle for the window. The default value is **0U**.
143143

144144
*lpCreateParam*
145-
[in] A pointer to window-creation data. For a full description, see the description for the final parameter to [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680).
145+
[in] A pointer to window-creation data. For a full description, see the description for the final parameter to [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa).
146146

147147
### Return Value
148148
If successful, the handle to the newly created window. Otherwise, NULL.
@@ -239,7 +239,7 @@ WNDPROC m_pfnSuperWindowProc;
239239

240240
|Type of window|Window procedure|
241241
|--------------------|----------------------|
242-
|A window based on a new window class, specified through the [DECLARE_WND_CLASS](window-class-macros.md#declare_wnd_class) macro.|The [DefWindowProc](https://msdn.microsoft.com/library/windows/desktop/ms633572) Win32 function.|
242+
|A window based on a new window class, specified through the [DECLARE_WND_CLASS](window-class-macros.md#declare_wnd_class) macro.|The [DefWindowProc](/windows/desktop/api/winuser/nf-winuser-defwindowproca) Win32 function.|
243243
|A window based on a window class that modifies an existing class, specified through the [DECLARE_WND_SUPERCLASS](window-class-macros.md#declare_wnd_superclass) macro.|The existing window class's window procedure.|
244244
|A subclassed window.|The subclassed window's original window procedure.|
245245

docs/atl/reference/u-menuorid-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class _U_MENUorID
4141
## Remarks
4242
This argument adapter class allows either IDs (UINTs) or menu handles (HMENUs) to be passed to a function without requiring an explicit cast on the part of the caller.
4343

44-
This class is designed for implementing wrappers to the Windows API, particularly the [CreateWindow](https://msdn.microsoft.com/library/windows/desktop/ms632679) and [CreateWindowEx](https://msdn.microsoft.com/library/windows/desktop/ms632680) functions, both of which accept an HMENU argument that may be a child window identifier (UINT) rather than a menu handle. For example, you can see this class in use as a parameter to [CWindowImpl::Create](cwindowimpl-class.md#create).
44+
This class is designed for implementing wrappers to the Windows API, particularly the [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) and [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa) functions, both of which accept an HMENU argument that may be a child window identifier (UINT) rather than a menu handle. For example, you can see this class in use as a parameter to [CWindowImpl::Create](cwindowimpl-class.md#create).
4545

4646

4747
The class defines two constructor overloads: one accepts a UINT argument and the other accepts an HMENU argument. The UINT argument is just cast to an HMENU in the constructor and the result stored in the class's single data member, [m_hMenu](#_u_menuorid__m_hmenu). The argument to the HMENU constructor is stored directly without conversion.

docs/dotnet/how-to-call-native-dlls-from-managed-code-using-pinvoke.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.workload: ["cplusplus", "dotnet"]
1515
Functions that are implemented in unmanaged DLLs can be called from managed code using Platform Invoke (P/Invoke) functionality. If the source code for the DLL is not available, P/Invoke is the only option for interoperating. However, unlike other .NET languages, Visual C++ provides an alternative to P/Invoke. For more information, see [Using C++ Interop (Implicit PInvoke)](../dotnet/using-cpp-interop-implicit-pinvoke.md).
1616

1717
## Example
18-
The following code example uses the Win32 [GetSystemMetrics](https://msdn.microsoft.com/library/windows/desktop/ms724385) function to retrieve the current resolution of the screen in pixels.
18+
The following code example uses the Win32 [GetSystemMetrics](/windows/desktop/api/winuser/nf-winuser-getsystemmetrics) function to retrieve the current resolution of the screen in pixels.
1919

2020
For functions that use only intrinsic types as arguments and return values, no extra work is required. Other data types, such as function pointers, arrays, and structures, require additional attributes to ensure proper data marshaling.
2121

docs/mfc/changing-list-control-styles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.workload: ["cplusplus"]
1414
# Changing List Control Styles
1515
You can change the window style of a list control ([CListCtrl](../mfc/reference/clistctrl-class.md)) at any time after you create it. By changing the window style, you change the kind of view the control uses. For example, to emulate the Explorer, you might supply menu items or toolbar buttons for switching the control between different views: icon view, list view, and so on.
1616

17-
For example, when the user selects your menu item, you could make a call to [GetWindowLong](https://msdn.microsoft.com/library/windows/desktop/ms633584) to retrieve the current style of the control and then call [SetWindowLong](https://msdn.microsoft.com/library/windows/desktop/ms633591) to reset the style. For more information, see [Using List View Controls](/windows/desktop/Controls/using-list-view-controls) in the Windows SDK.
17+
For example, when the user selects your menu item, you could make a call to [GetWindowLong](/windows/desktop/api/winuser/nf-winuser-getwindowlonga) to retrieve the current style of the control and then call [SetWindowLong](/windows/desktop/api/winuser/nf-winuser-setwindowlonga) to reset the style. For more information, see [Using List View Controls](/windows/desktop/Controls/using-list-view-controls) in the Windows SDK.
1818

1919
Available styles are listed in [Create](../mfc/reference/clistctrl-class.md#create). The styles **LVS_ICON**, **LVS_SMALLICON**, **LVS_LIST**, and **LVS_REPORT** designate the four list control views.
2020

0 commit comments

Comments
 (0)