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/atl/reference/ccontainedwindowt-class.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
@@ -193,16 +193,16 @@ HWND Create(
193
193
[in] Specifies the name of the window. The default value is NULL.
194
194
195
195
*dwStyle*
196
-
[in] The style of the window. The default value is WS_CHILD | 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 | WS_VISIBLE. For a list of possible values, see [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) in the Windows SDK.
197
197
198
198
*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.
200
200
201
201
*MenuOrID*
202
202
[in] For a child window, the window identifier. For a top-level window, a menu handle for the window. The default value is **0U**.
203
203
204
204
*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).
206
206
207
207
### Return Value
208
208
If successful, the handle to the newly created window; otherwise, NULL.
Copy file name to clipboardExpand all lines: docs/atl/reference/composite-control-global-functions.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
@@ -419,7 +419,7 @@ ATLAPI_(BOOL) AtlAxWinInit();
419
419
Nonzero if the initialization of the control hosting code was successful; otherwise FALSE.
420
420
421
421
### 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.
423
423
424
424
## <aname="atlaxwinterm"></a> AtlAxWinTerm
425
425
This function uninitializes ATL's control hosting code by unregistering the **"AtlAxWin80"** and **"AtlAxWinLic80"** window classes.
Copy file name to clipboardExpand all lines: docs/atl/reference/cwindow-class.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -389,10 +389,10 @@ HWND Create(
389
389
[in] Specifies the name of the window. The default value is NULL.
390
390
391
391
*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.
393
393
394
394
*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.
396
396
397
397
*MenuOrID*
398
398
[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(
406
406
### Remarks
407
407
`CWindow::rcDefault` is defined as `__declspec(selectany) RECT CWindow::rcDefault = {CW_USEDEFAULT, CW_USEDEFAULT, 0, 0};`.
408
408
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.
410
410
411
411
**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.
Initializes the [m_hWnd](#m_hwnd) member to *hWnd*, which by default is NULL.
460
460
461
461
> [!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.
Updates the specified multiple-window-position structure for the specified window.
@@ -486,7 +486,7 @@ BOOL DestroyWindow() throw();
486
486
```
487
487
488
488
### 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.
490
490
491
491
It does not destroy the `CWindow` object itself.
492
492
@@ -1043,7 +1043,7 @@ LONG GetWindowLong(int nIndex) const throw();
1043
1043
```
1044
1044
1045
1045
### 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.
1047
1047
1048
1048
> [!NOTE]
1049
1049
> 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();
1170
1170
```
1171
1171
1172
1172
### 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.
1174
1174
1175
1175
## <aname="gotodlgctrl"></a> CWindow::GotoDlgCtrl
1176
1176
Sets the keyboard focus to a control in the dialog box.
@@ -1448,13 +1448,13 @@ BOOL ModifyStyle(
1448
1448
[in] Specifies the window styles to be added during style modification.
1449
1449
1450
1450
*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.
1452
1452
1453
1453
### Return Value
1454
1454
TRUE if the window styles are modified; otherwise, FALSE.
1455
1455
1456
1456
### Remarks
1457
-
Styles to be added or removed can be combined by using the bitwise OR ( | ) 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 ( | ) operator. See the [CreateWindow](/windows/desktop/api/winuser/nf-winuser-createwindowa) function in the Windows SDKfor information about the available window styles.
1458
1458
1459
1459
If *nFlags* is nonzero, `ModifyStyle` calls the Win32 function `SetWindowPos`, and redraws the window by combining *nFlags* with the following four flags:
1460
1460
@@ -1489,13 +1489,13 @@ BOOL ModifyStyleEx(
1489
1489
[in] Specifies the extended styles to be added during style modification.
1490
1490
1491
1491
*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.
1493
1493
1494
1494
### Return Value
1495
1495
TRUE if the extended window styles are modified; otherwise, FALSE.
1496
1496
1497
1497
### Remarks
1498
-
Styles to be added or removed can be combined by using the bitwise OR ( | ) 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 ( | ) operator. See the [CreateWindowEx](/windows/desktop/api/winuser/nf-winuser-createwindowexa) function in the Windows SDKfor information about the available extended styles.
1499
1499
1500
1500
If *nFlags* is nonzero, `ModifyStyleEx` calls the Win32 function `SetWindowPos`, and redraws the window by combining *nFlags* with the following four flags:
1501
1501
@@ -2072,7 +2072,7 @@ LONG SetWindowLong(int nIndex, LONG dwNewLong) throw();
2072
2072
```
2073
2073
2074
2074
### 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.
2076
2076
2077
2077
> [!NOTE]
2078
2078
> 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(
2118
2118
```
2119
2119
2120
2120
### 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.
2122
2122
2123
2123
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.
2124
2124
@@ -2153,7 +2153,7 @@ WORD SetWindowWord(int nIndex, WORD wNewWord) throw();
2153
2153
```
2154
2154
2155
2155
### 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.
Copy file name to clipboardExpand all lines: docs/atl/reference/cwindowimpl-class.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
@@ -133,16 +133,16 @@ HWND Create(
133
133
[in] Specifies the name of the window. The default value is NULL.
134
134
135
135
*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.
137
137
138
138
*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.
140
140
141
141
*MenuOrID*
142
142
[in] For a child window, the window identifier. For a top-level window, a menu handle for the window. The default value is **0U**.
143
143
144
144
*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).
146
146
147
147
### Return Value
148
148
If successful, the handle to the newly created window. Otherwise, NULL.
@@ -239,7 +239,7 @@ WNDPROC m_pfnSuperWindowProc;
239
239
240
240
|Type of window|Window procedure|
241
241
|--------------------|----------------------|
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.|
243
243
|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.|
244
244
|A subclassed window.|The subclassed window's original window procedure.|
Copy file name to clipboardExpand all lines: docs/atl/reference/u-menuorid-class.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
@@ -41,7 +41,7 @@ class _U_MENUorID
41
41
## Remarks
42
42
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.
43
43
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).
45
45
46
46
47
47
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.
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).
16
16
17
17
## 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.
19
19
20
20
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.
Copy file name to clipboardExpand all lines: docs/mfc/changing-list-control-styles.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
@@ -14,7 +14,7 @@ ms.workload: ["cplusplus"]
14
14
# Changing List Control Styles
15
15
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.
16
16
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.
18
18
19
19
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.
0 commit comments