Skip to content

Commit bbafaea

Browse files
author
Colin Robertson
committed
Migrate more fixes from markdig
1 parent 18903df commit bbafaea

File tree

94 files changed

+4564
-4770
lines changed

Some content is hidden

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

94 files changed

+4564
-4770
lines changed

docs/atl/active-template-library-atl-concepts.md

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -14,88 +14,88 @@ ms.workload: ["cplusplus"]
1414
# Active Template Library (ATL) Concepts
1515
The Active Template Library (ATL) is a set of template-based C++ classes that let you create small, fast Component Object Model (COM) objects. It has special support for key COM features, including stock implementations, dual interfaces, standard COM enumerator interfaces, connection points, tear-off interfaces, and ActiveX controls.
1616

17-
If you do a lot of ATL programming, you will want to learn more about attributes, a new feature in Visual C++ .NET that is designed to simplify COM programming. For more information, see [Attributed Programming](../windows/attributed-programming-concepts.md).
17+
If you do a lot of ATL programming, you will want to learn more about attributes, a new feature in Visual C++ .NET that is designed to simplify COM programming. For more information, see [Attributed Programming](../windows/attributed-programming-concepts.md).
1818

1919
## In This Section
20-
[ATL Tutorial](../atl/active-template-library-atl-tutorial.md)
21-
Leads you through the creation of a control and demonstrates some ATL fundamentals in the process.
20+
[ATL Tutorial](../atl/active-template-library-atl-tutorial.md)
21+
Leads you through the creation of a control and demonstrates some ATL fundamentals in the process.
2222

23-
[Introduction to COM and ATL](../atl/introduction-to-com-and-atl.md)
24-
Introduces the major concepts behind the Component Object Model (COM). This article also briefly explains what ATL is and when you should use it.
23+
[Introduction to COM and ATL](../atl/introduction-to-com-and-atl.md)
24+
Introduces the major concepts behind the Component Object Model (COM). This article also briefly explains what ATL is and when you should use it.
2525

26-
[Fundamentals of ATL COM Objects](../atl/fundamentals-of-atl-com-objects.md)
27-
Discusses the relationship among various ATL classes and how those classes are implemented.
26+
[Fundamentals of ATL COM Objects](../atl/fundamentals-of-atl-com-objects.md)
27+
Discusses the relationship among various ATL classes and how those classes are implemented.
2828

29-
[Dual Interfaces and ATL](../atl/dual-interfaces-and-atl.md)
30-
Describes dual interfaces from an ATL perspective.
29+
[Dual Interfaces and ATL](../atl/dual-interfaces-and-atl.md)
30+
Describes dual interfaces from an ATL perspective.
3131

32-
[ATL Collections and Enumerators](../atl/atl-collections-and-enumerators.md)
33-
Describes the implementation and creation of collections and enumerators in ATL.
32+
[ATL Collections and Enumerators](../atl/atl-collections-and-enumerators.md)
33+
Describes the implementation and creation of collections and enumerators in ATL.
3434

35-
[Composite Control Fundamentals](../atl/atl-composite-control-fundamentals.md)
36-
Provides step-by-step instructions for creating a composite control. A composite control is a type of ActiveX control that can contain other ActiveX controls or Windows controls.
35+
[Composite Control Fundamentals](../atl/atl-composite-control-fundamentals.md)
36+
Provides step-by-step instructions for creating a composite control. A composite control is a type of ActiveX control that can contain other ActiveX controls or Windows controls.
3737

38-
[ATL Control Containment FAQ](../atl/atl-control-containment-faq.md)
39-
Covers the fundamental questions related to hosting controls with ATL.
38+
[ATL Control Containment FAQ](../atl/atl-control-containment-faq.md)
39+
Covers the fundamental questions related to hosting controls with ATL.
4040

41-
[ATL COM Property Pages](../atl/atl-com-property-pages.md)
42-
Shows you how to specify and implement COM property pages.
41+
[ATL COM Property Pages](../atl/atl-com-property-pages.md)
42+
Shows you how to specify and implement COM property pages.
4343

44-
[ATL Support for DHTML Controls](../atl/atl-support-for-dhtml-controls.md)
45-
Provides step-by-step instructions for creating a DHTML control.
44+
[ATL Support for DHTML Controls](../atl/atl-support-for-dhtml-controls.md)
45+
Provides step-by-step instructions for creating a DHTML control.
4646

47-
[ATL Connection Points](../atl/atl-connection-points.md)
48-
Explains what connection points are and how ATL implements them.
47+
[ATL Connection Points](../atl/atl-connection-points.md)
48+
Explains what connection points are and how ATL implements them.
4949

50-
[Event Handling and ATL](../atl/event-handling-and-atl.md)
51-
Describes the steps that you need to take to handle COM events using ATL's [IDispEventImpl](../atl/reference/idispeventimpl-class.md) and [IDispEventSimpleImpl](../atl/reference/idispeventsimpleimpl-class.md) classes.
50+
[Event Handling and ATL](../atl/event-handling-and-atl.md)
51+
Describes the steps that you need to take to handle COM events using ATL's [IDispEventImpl](../atl/reference/idispeventimpl-class.md) and [IDispEventSimpleImpl](../atl/reference/idispeventsimpleimpl-class.md) classes.
5252

53-
[ATL and the Free Threaded Marshaler](../atl/atl-and-the-free-threaded-marshaler.md)
54-
Provides details on the ATL Simple Object Wizard's option that allows your class to aggregate the free threaded marshaler (FTM).
53+
[ATL and the Free Threaded Marshaler](../atl/atl-and-the-free-threaded-marshaler.md)
54+
Provides details on the ATL Simple Object Wizard's option that allows your class to aggregate the free threaded marshaler (FTM).
5555

56-
[Specifying the Project's Threading Model](../atl/specifying-the-threading-model-for-a-project-atl.md)
57-
Describes the macros that are available to control run-time performance related to threading in your project.
56+
[Specifying the Project's Threading Model](../atl/specifying-the-threading-model-for-a-project-atl.md)
57+
Describes the macros that are available to control run-time performance related to threading in your project.
5858

59-
[ATL Module Classes](../atl/atl-module-classes.md)
60-
Discusses the module classes new for ATL 7.0. Module classes implement the basic functionality required by ATL.
59+
[ATL Module Classes](../atl/atl-module-classes.md)
60+
Discusses the module classes new for ATL 7.0. Module classes implement the basic functionality required by ATL.
6161

62-
[ATL Services](../atl/atl-services.md)
63-
Covers the series of events that occur when a service is implemented. Also talks about some of the concepts related to developing a service.
62+
[ATL Services](../atl/atl-services.md)
63+
Covers the series of events that occur when a service is implemented. Also talks about some of the concepts related to developing a service.
6464

65-
[ATL Window Classes](../atl/atl-window-classes.md)
66-
Describes how to create, superclass, and subclass windows in ATL. The ATL window classes are not COM classes.
65+
[ATL Window Classes](../atl/atl-window-classes.md)
66+
Describes how to create, superclass, and subclass windows in ATL. The ATL window classes are not COM classes.
6767

68-
[ATL Collection Classes](../atl/atl-collection-classes.md)
69-
Describes how to use arrays and maps in ATL.
68+
[ATL Collection Classes](../atl/atl-collection-classes.md)
69+
Describes how to use arrays and maps in ATL.
7070

71-
[The ATL Registry Component (Registrar)](../atl/atl-registry-component-registrar.md)
72-
Discusses ATL scripting syntax and replaceable parameters. It also explains how to set up a static link to the Registrar.
71+
[The ATL Registry Component (Registrar)](../atl/atl-registry-component-registrar.md)
72+
Discusses ATL scripting syntax and replaceable parameters. It also explains how to set up a static link to the Registrar.
7373

74-
[Programming with ATL and C Run-Time Code](../atl/programming-with-atl-and-c-run-time-code.md)
75-
Discusses the benefits of linking statically or dynamically to the C Run-Time Library (CRT).
74+
[Programming with ATL and C Run-Time Code](../atl/programming-with-atl-and-c-run-time-code.md)
75+
Discusses the benefits of linking statically or dynamically to the C Run-Time Library (CRT).
7676

77-
[Programming with CComBSTR](../atl/programming-with-ccombstr-atl.md)
78-
Discusses several situations that require caution when programming with `CComBSTR`.
77+
[Programming with CComBSTR](../atl/programming-with-ccombstr-atl.md)
78+
Discusses several situations that require caution when programming with `CComBSTR`.
7979

80-
[Encoding Reference](../atl/atl-encoding-reference.md)
81-
Provides functions and macros that support encoding in a range of common Internet standards such as uuencode, hexadecimal, and UTF8 in atlenc.h.
80+
[Encoding Reference](../atl/atl-encoding-reference.md)
81+
Provides functions and macros that support encoding in a range of common Internet standards such as uuencode, hexadecimal, and UTF8 in atlenc.h.
8282

83-
[Utilities Reference](../atl/atl-utilities-reference.md)
84-
Provides code for manipulating paths and URLs in the form of [CPathT](../atl/reference/cpatht-class.md) and [CUrl](../atl/reference/curl-class.md). A thread pool, [CThreadPool](../atl/reference/cthreadpool-class.md), can be used in your own applications. This code can be found in atlpath.h and atlutil.h.
83+
[Utilities Reference](../atl/atl-utilities-reference.md)
84+
Provides code for manipulating paths and URLs in the form of [CPathT](../atl/reference/cpatht-class.md) and [CUrl](../atl/reference/curl-class.md). A thread pool, [CThreadPool](../atl/reference/cthreadpool-class.md), can be used in your own applications. This code can be found in atlpath.h and atlutil.h.
8585

8686
## Related Sections
87-
[ATL Samples](../visual-cpp-samples.md)
88-
Provides descriptions of and links to the ATL sample programs.
87+
[ATL Samples](../visual-cpp-samples.md)
88+
Provides descriptions of and links to the ATL sample programs.
8989

90-
[Creating an ATL Project](../atl/reference/creating-an-atl-project.md)
91-
Contains information on the ATL Project Wizard.
90+
[Creating an ATL Project](../atl/reference/creating-an-atl-project.md)
91+
Contains information on the ATL Project Wizard.
9292

93-
[ATL Control Wizard](../atl/reference/atl-control-wizard.md)
94-
Discusses how to add classes.
93+
[ATL Control Wizard](../atl/reference/atl-control-wizard.md)
94+
Discusses how to add classes.
9595

96-
[Attributed Programming](../windows/attributed-programming-concepts.md)
97-
Provides an overview on using attributes to simplify COM programming plus a list of links to more detailed topics.
96+
[Attributed Programming](../windows/attributed-programming-concepts.md)
97+
Provides an overview on using attributes to simplify COM programming plus a list of links to more detailed topics.
9898

99-
[ATL Class Overview](../atl/atl-class-overview.md)
100-
Provides reference information and links to the ATL classes.
99+
[ATL Class Overview](../atl/atl-class-overview.md)
100+
Provides reference information and links to the ATL classes.
101101

docs/atl/active-template-library-atl-tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ ms.workload: ["cplusplus"]
1414
# Active Template Library (ATL) Tutorial
1515
ATL is designed to simplify the process of creating efficient, flexible, lightweight controls. This tutorial leads you through the creation of an ActiveX control, demonstrating many ATL and COM fundamentals.
1616

17-
By following this tutorial, you will learn how to add a control to an ATL project that draws a circle and a filled polygon. You will then add a property to indicate how many sides the polygon will have and create drawing code for updating the control when the property changes. The control will then be displayed on a Web page using some VBScript to make it respond to events.
17+
By following this tutorial, you will learn how to add a control to an ATL project that draws a circle and a filled polygon. You will then add a property to indicate how many sides the polygon will have and create drawing code for updating the control when the property changes. The control will then be displayed on a Web page using some VBScript to make it respond to events.
1818

19-
The tutorial is divided into seven steps. You should perform each step in order as later steps depend on previously completed tasks. Before you begin, you should confirm that you have privileges required to register an ActiveX component on your particular computer. This is usually only a concern if you are running Visual Studio .NET over a Terminal Services connection.
19+
The tutorial is divided into seven steps. You should perform each step in order as later steps depend on previously completed tasks. Before you begin, you should confirm that you have privileges required to register an ActiveX component on your particular computer. This is usually only a concern if you are running Visual Studio .NET over a Terminal Services connection.
2020

2121
- [Step 1: Creating the Project](../atl/creating-the-project-atl-tutorial-part-1.md)
2222

@@ -33,5 +33,5 @@ ATL is designed to simplify the process of creating efficient, flexible, lightwe
3333
- [Step 7: Putting Your Control on a Web Page](../atl/putting-the-control-on-a-web-page-atl-tutorial-part-7.md)
3434

3535
## See Also
36-
[Concepts](../atl/active-template-library-atl-concepts.md)
36+
[Concepts](../atl/active-template-library-atl-concepts.md)
3737

docs/atl/atl-event-handling-summary.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In general, handling COM events is a relatively simple process. There are three
2121
- Unadvise the event source when your object no longer needs to receive events.
2222

2323
## Implementing the Interface
24-
There are four main ways of implementing an interface using ATL.
24+
There are four main ways of implementing an interface using ATL.
2525

2626
|Derive from|Suitable for Interface type|Requires you to implement all methods*|Requires a type library at run time|
2727
|-----------------|---------------------------------|---------------------------------------------|-----------------------------------------|
@@ -30,10 +30,10 @@ In general, handling COM events is a relatively simple process. There are three
3030
|[IDispEventImpl](../atl/reference/idispeventimpl-class.md)|Dispinterface|No|Yes|
3131
|[IDispEventSimpleImpl](../atl/reference/idispeventsimpleimpl-class.md)|Dispinterface|No|No|
3232

33-
\* When using ATL support classes, you are never required to implement the `IUnknown` or `IDispatch` methods manually.
33+
\* When using ATL support classes, you are never required to implement the `IUnknown` or `IDispatch` methods manually.
3434

3535
## Advising and Unadvising the Event Source
36-
There are three main ways of advising and unadvising an event source using ATL.
36+
There are three main ways of advising and unadvising an event source using ATL.
3737

3838
|Advise function|Unadvise function|Most suitable for use with|Requires you to keep track of a cookie|Comments|
3939
|---------------------|-----------------------|--------------------------------|---------------------------------------------|--------------|
@@ -43,6 +43,6 @@ In general, handling COM events is a relatively simple process. There are three
4343
|[CAxDialogImpl::AdviseSinkMap(TRUE)](../atl/reference/caxdialogimpl-class.md#advisesinkmap)|[CAxDialogImpl::AdviseSinkMap(FALSE)](../atl/reference/caxdialogimpl-class.md#advisesinkmap)|ActiveX controls in a dialog box|No|`CAxDialogImpl::AdviseSinkMap` advises and unadvises all ActiveX controls in the dialog resource. This is done automatically for you.|
4444

4545
## See Also
46-
[Event Handling](../atl/event-handling-and-atl.md)
47-
[Supporting IDispEventImpl](../atl/supporting-idispeventimpl.md)
46+
[Event Handling](../atl/event-handling-and-atl.md)
47+
[Supporting IDispEventImpl](../atl/supporting-idispeventimpl.md)
4848

docs/atl/commandhandler.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,40 @@ ms.author: "mblome"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# CommandHandler
16-
`CommandHandler` is the function identified by the third parameter of the COMMAND_HANDLER macro in your message map.
17-
16+
17+
`CommandHandler` is the function identified by the third parameter of the COMMAND_HANDLER macro in your message map.
18+
1819
## Syntax
1920

2021
```
21-
22-
LRESULT
23-
CommandHandler
24-
(
22+
LRESULT CommandHandler(
2523
WORD wNotifyCode,
2624
WORD wID,
2725
HWND hWndCtl,
2826
BOOL& bHandled);
2927
```
3028

3129
#### Parameters
32-
*wNotifyCode*
33-
The notification code.
30+
*wNotifyCode*
31+
The notification code.
3432

35-
*wID*
36-
The identifier of the menu item, control, or accelerator.
33+
*wID*
34+
The identifier of the menu item, control, or accelerator.
3735

38-
*hWndCtl*
39-
A handle to a window control.
36+
*hWndCtl*
37+
A handle to a window control.
4038

41-
*bHandled*
42-
The message map sets *bHandled* to TRUE before `CommandHandler` is called. If `CommandHandler` does not fully handle the message, it should set *bHandled* to FALSE to indicate the message needs further processing.
39+
*bHandled*
40+
The message map sets *bHandled* to TRUE before `CommandHandler` is called. If `CommandHandler` does not fully handle the message, it should set *bHandled* to FALSE to indicate the message needs further processing.
4341

4442
## Return Value
45-
The result of message processing. 0 if successful.
43+
The result of message processing. 0 if successful.
4644

4745
## Remarks
48-
For an example of using this message handler in a message map, see [COMMAND_HANDLER](reference/message-map-macros-atl.md#command_handler).
46+
For an example of using this message handler in a message map, see [COMMAND_HANDLER](reference/message-map-macros-atl.md#command_handler).
4947

5048
## See Also
51-
[Implementing a Window](../atl/implementing-a-window.md)
52-
[Message Maps](../atl/message-maps-atl.md)
53-
[WM_NOTIFY](https://msdn.microsoft.com/library/windows/desktop/bb775583)
49+
[Implementing a Window](../atl/implementing-a-window.md)
50+
[Message Maps](../atl/message-maps-atl.md)
51+
[WM_NOTIFY](https://msdn.microsoft.com/library/windows/desktop/bb775583)
5452

0 commit comments

Comments
 (0)