Skip to content

Fix a few typos #4836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/atl/reference/ccomcoclass-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ A standard HRESULT value. For details, see Remarks.

### Remarks

To call `Error`, your object must implement the `ISupportErrorInfo Interface` interface.
To call `Error`, your object must implement the `ISupportErrorInfo` interface.

If the *hRes* parameter is nonzero, then `Error` returns the value of *hRes*. If *hRes* is zero, then the first four versions of `Error` return DISP_E_EXCEPTION. The last two versions return the result of the macro **MAKE_HRESULT( 1, FACILITY_ITF,** *nID* **)**.

Expand Down
2 changes: 1 addition & 1 deletion docs/atl/supporting-idispatch-and-ierrorinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ms.assetid: 7db2220f-319d-4ce9-9382-d340019f14f7

You can use the template class [IDispatchImpl](../atl/reference/idispatchimpl-class.md) to provide a default implementation of the `IDispatch Interface` portion of any dual interfaces on your object.

If your object uses the `IErrorInfo` interface to report errors back to the client, then your object must support the `ISupportErrorInfo Interface` interface. The template class [ISupportErrorInfoImpl](../atl/reference/isupporterrorinfoimpl-class.md) provides an easy way to implement this if you only have a single interface that generates errors on your object.
If your object uses the `IErrorInfo` interface to report errors back to the client, then your object must support the `ISupportErrorInfo` interface. The template class [ISupportErrorInfoImpl](../atl/reference/isupporterrorinfoimpl-class.md) provides an easy way to implement this if you only have a single interface that generates errors on your object.

## See also

Expand Down
2 changes: 1 addition & 1 deletion docs/code-quality/c6240.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void f(int n)
}
else
{
puts("bitmak false");
puts("bitmask false");
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cd2dbitmap-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CD2DBitmap : public CD2DResource;
|[CD2DBitmap::m_lpszType](#m_lpsztype)|Resource type.|
|[CD2DBitmap::m_pBitmap](#m_pbitmap)|Stores a pointer to an ID2D1Bitmap object.|
|[CD2DBitmap::m_sizeDest](#m_sizedest)|Bitmap destination size.|
|[CD2DBitmap::m_strPath](#m_strpath)|Botmap file path.|
|[CD2DBitmap::m_strPath](#m_strpath)|Bitmap file path.|
|[CD2DBitmap::m_uiResID](#m_uiresid)|Bitmap resource ID.|

## Inheritance Hierarchy
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cd2dgeometry-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ BOOL ComputePointAtLength(
### Parameters

*length*<br/>
The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry.
The distance along the geometry of the point and tangent to find. If this distance is less than 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry.

*worldTransform*<br/>
The transform to apply to the geometry before calculating the specified point and tangent.
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cd2dpathgeometry-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CD2DPathGeometry : public CD2DGeometry;
|[CD2DPathGeometry::Create](#create)|Creates a CD2DPathGeometry. (Overrides [CD2DResource::Create](../../mfc/reference/cd2dresource-class.md#create).)|
|[CD2DPathGeometry::Destroy](#destroy)|Destroys a CD2DPathGeometry object. (Overrides [CD2DGeometry::Destroy](../../mfc/reference/cd2dgeometry-class.md#destroy).)|
|[CD2DPathGeometry::Detach](#detach)|Detaches resource interface from the object|
|[CD2DPathGeometry::GetFigureCount](#getfigurecount)|Retrieves tthe number of figures in the path geometry.|
|[CD2DPathGeometry::GetFigureCount](#getfigurecount)|Retrieves the number of figures in the path geometry.|
|[CD2DPathGeometry::GetSegmentCount](#getsegmentcount)|Retrieves the number of segments in the path geometry.|
|[CD2DPathGeometry::Open](#open)|Retrieves the geometry sink that is used to populate the path geometry with figures and segments.|
|[CD2DPathGeometry::Stream](#stream)|Copies the contents of the path geometry to the specified ID2D1GeometrySink.|
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cdaotabledef-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ The path as shown in the table below is the full path for the directory containi

The table in [CDaoTableDef::SetConnect](#setconnect) shows possible database types and their corresponding database specifiers and paths:

For Microsoft Jet database base tables, the specifier is a empty string ("").
For Microsoft Jet database base tables, the specifier is an empty string ("").

If a password is required but not provided, the ODBC driver displays a login dialog box the first time a table is accessed and again if the connection is closed and reopened. If an attached table has the `dbAttachSavePWD` attribute, the login prompt will not appear when the table is reopened.

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cdockstate-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void LoadState(LPCTSTR lpszProfileName);
### Parameters

*lpszProfileName*<br/>
Points to a null-teminated string that specifies the name of a section in the initialization file or a key in the Windows registry where state information is stored.
Points to a null-terminated string that specifies the name of a section in the initialization file or a key in the Windows registry where state information is stored.

### Remarks

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cexception-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ catch(CMemoryException* pEx)
pEx->Delete();
AfxAbort();
}
// If an exception occurrs in the CFile constructor,
// If an exception occurs in the CFile constructor,
// the language will free the memory allocated by new
// and will not complete the assignment to pFile.
// Thus, our clean-up code needs to test for NULL.
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cmdichildwndex-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ BOOL IsTaskbarTabsSupportEnabled();

### Return Value

TRUE if the MDI child can appear on Windows 7 taskbar tabs; FALSE if the MDI child can not appear on Windows 7 taskbar tabs.
TRUE if the MDI child can appear on Windows 7 taskbar tabs; FALSE if the MDI child cannot appear on Windows 7 taskbar tabs.

### Remarks

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cmfccolorbar-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CMFCColorBar : public CMFCPopupMenuBar
|`m_bShowDocColorsWhenDocked`|A Boolean that indicates whether to show document colors when the color bar is docked. For more information, see [CMFCColorBar::SetDocumentColors](#setdocumentcolors).|
|`m_bStdColorDlg`|A Boolean that indicates whether to show the standard system color dialog box or the [CMFCColorDialog](../../mfc/reference/cmfccolordialog-class.md) dialog box. For more information, see [CMFCColorBar::EnableOtherButton](#enableotherbutton).|
|`m_ColorAutomatic`|A [COLORREF](/windows/win32/gdi/colorref) that stores the current automatic color. For more information, see [CMFCColorBar::EnableOtherButton](#enableotherbutton).|
|`m_ColorNames`|An [CMap](../../mfc/reference/cmap-class.md) object that associates a set of RGB colors with their names.|
|`m_ColorNames`|A [CMap](../../mfc/reference/cmap-class.md) object that associates a set of RGB colors with their names.|
|`m_colors`|A [CArray](../../mfc/reference/carray-class.md) of [COLORREF](/windows/win32/gdi/colorref) values that contains the colors that are displayed in the color bar control.|
|`m_ColorSelected`|A [COLORREF](/windows/win32/gdi/colorref) value that is the color that the user has currently selected from the color bar control.|
|`m_lstDocColors`|A [CList](../../mfc/reference/clist-class.md) of [COLORREF](/windows/win32/gdi/colorref) values that contains the colors that are currently used in a document.|
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cmfceditbrowsectrl-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Specifies the illegal file name.

### Return Value

Should return FALSE if this file name can not be passed further to the file dialog. In this case, focus is set back to the edit control and the user should continue editing. The default implementation displays a message box telling the user about the illegal file name and returns FALSE. You can override this method, correct the file name, and return TRUE for further processing.
Should return FALSE if this file name cannot be passed further to the file dialog. In this case, focus is set back to the edit control and the user should continue editing. The default implementation displays a message box telling the user about the illegal file name and returns FALSE. You can override this method, correct the file name, and return TRUE for further processing.

### Remarks

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cmfctoolbarscustomizedialog-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ virtual BOOL OnAssignKey(ACCEL* pAccel);
### Parameters

*pAccel*<br/>
[in, out] Pointer to the proposed keyboard assigment that is expressed as an [ACCEL](/windows/win32/api/winuser/ns-winuser-accel) struct.
[in, out] Pointer to the proposed keyboard assignment that is expressed as an [ACCEL](/windows/win32/api/winuser/ns-winuser-accel) struct.

### Return Value

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cmfcvisualmanager-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ An application can only have one `CMFCVisualManager` object associated with it.

## <a name="getmditabsborderssize"></a> CMFCVisualManager::GetMDITabsBordersSize

The framework calls this method to determine the border size of a MDITabs window before it draws the window.
The framework calls this method to determine the border size of an MDITabs window before it draws the window.

```
virtual int GetMDITabsBordersSize();
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cmfcvisualmanagervs2005-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CMFCVisualManagerVS2005 : public CMFCVisualManagerOffice2003
|Name|Description|
|----------|-----------------|
|[CMFCVisualManagerVS2005::GetDockingTabsBordersSize](#getdockingtabsborderssize)|The framework calls this method when it draws a pane that is docked and tabbed. (Overrides [CMFCVisualManager::GetDockingTabsBordersSize](../../mfc/reference/cmfcvisualmanager-class.md#getdockingtabsborderssize).)|
|[CMFCVisualManagerVS2005::GetMDITabsBordersSize](#getmditabsborderssize)|The framework calls this method to determine the border size of a MDITabs window before it draws the window. (Overrides [CMFCVisualManager::GetMDITabsBordersSize](../../mfc/reference/cmfcvisualmanager-class.md#getmditabsborderssize).)|
|[CMFCVisualManagerVS2005::GetMDITabsBordersSize](#getmditabsborderssize)|The framework calls this method to determine the border size of an MDITabs window before it draws the window. (Overrides [CMFCVisualManager::GetMDITabsBordersSize](../../mfc/reference/cmfcvisualmanager-class.md#getmditabsborderssize).)|
|[CMFCVisualManagerVS2005::GetPropertyGridGroupColor](#getpropertygridgroupcolor)|(Overrides [CMFCVisualManagerOffice2003::GetPropertyGridGroupColor](../../mfc/reference/cmfcvisualmanageroffice2003-class.md#getpropertygridgroupcolor).)|
|[CMFCVisualManagerVS2005::GetTabFrameColors](#gettabframecolors)|(Overrides [CMFCVisualManagerOffice2003::GetTabFrameColors](../../mfc/reference/cmfcvisualmanageroffice2003-class.md#gettabframecolors).)|
|[CMFCVisualManagerVS2005::HasOverlappedAutoHideButtons](#hasoverlappedautohidebuttons)|Returns whether auto-hide buttons overlap in the current visual manager. (Overrides [CMFCVisualManager::HasOverlappedAutoHideButtons](../../mfc/reference/cmfcvisualmanager-class.md#hasoverlappedautohidebuttons).)|
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/colecmdui-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class COleCmdUI : public CCmdUI

## Remarks

In an application that is not enabled for DocObjects, when the user views a menu in the application, MFC processes UPDATE_COMMAND_UI notifcations. Each notification is given a [CCmdUI](../../mfc/reference/ccmdui-class.md) object that can be manipulated to reflect the state of a particular command. However, when your application is enabled for DocObjects, MFC processes UPDATE_OLE_COMMAND_UI notifications and assigns `COleCmdUI` objects.
In an application that is not enabled for DocObjects, when the user views a menu in the application, MFC processes UPDATE_COMMAND_UI notifications. Each notification is given a [CCmdUI](../../mfc/reference/ccmdui-class.md) object that can be manipulated to reflect the state of a particular command. However, when your application is enabled for DocObjects, MFC processes UPDATE_OLE_COMMAND_UI notifications and assigns `COleCmdUI` objects.

`COleCmdUI` allows a DocObject to receive commands that originate in its container's user interface (such as FileNew, Open, Print, and so on), and allows a container to receive commands that originate in the DocObject's user interface. Although `IDispatch` could be used to dispatch the same commands, `IOleCommandTarget` provides a simpler way to query and execute because it relies on a standard set of commands, usually without arguments, and no type information is involved. `COleCmdUI` can be used to enable, update, and set other properties of DocObject user interface commands. When you want to invoke the command, call [COleServerDoc::OnExecOleCmd](../../mfc/reference/coleserverdoc-class.md#onexecolecmd).

Expand Down
4 changes: 2 additions & 2 deletions docs/mfc/reference/colecontrolsite-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ Specifies whether the control site wishes to stop accepting events. Nonzero if t

### Remarks

If *bFreeze* is TRUE, the control site requests the control to stop fring events. If *bFreeze* is FALSE, the control site requests the control to continue firing events.
If *bFreeze* is TRUE, the control site requests the control to stop firing events. If *bFreeze* is FALSE, the control site requests the control to continue firing events.

> [!NOTE]
> The control is not required to stop firing events if requested by the control site. It can continue firing but all subsequent events will be ignored by the control site.
Expand Down Expand Up @@ -1012,7 +1012,7 @@ Pointer to the list of arguments.

### Remarks

Extra parameters for the method or property being invoked can be passeed using the *arg_list* parameter. If `SetProperty` encounters an error, an exception is thrown.
Extra parameters for the method or property being invoked can be passed using the *arg_list* parameter. If `SetProperty` encounters an error, an exception is thrown.

The type of exception is determined by the return value of the attempt to set the property or method. If the return value is `DISP_E_EXCEPTION`, a `COleDispatchExcpetion` is thrown; otherwise a `COleException`.

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/coledataobject-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Nonzero if successful; otherwise 0.
### Remarks

> [!NOTE]
> Calling this function locks the Clipboard until this data object is released. The data object is released in the destructor for the `COleDataObject`. For more information, see [OpenClipboard](/windows/win32/api/winuser/nf-winuser-openclipboard) and [CloseClipboard](/windows/win32/api/winuser/nf-winuser-closeclipboard) in the Win32 documention.
> Calling this function locks the Clipboard until this data object is released. The data object is released in the destructor for the `COleDataObject`. For more information, see [OpenClipboard](/windows/win32/api/winuser/nf-winuser-openclipboard) and [CloseClipboard](/windows/win32/api/winuser/nf-winuser-closeclipboard) in the Win32 documentation.

## <a name="beginenumformats"></a> COleDataObject::BeginEnumFormats

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/coledatasource-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ For more information, see [RegisterClipboardFormat](/windows/win32/api/winuser/n

## <a name="dodragdrop"></a> COleDataSource::DoDragDrop

Call the `DoDragDrop` member function to perform a drag-and-drop operation for this data source, typically in an [CWnd::OnLButtonDown](../../mfc/reference/cwnd-class.md#onlbuttondown) handler.
Call the `DoDragDrop` member function to perform a drag-and-drop operation for this data source, typically in a [CWnd::OnLButtonDown](../../mfc/reference/cwnd-class.md#onlbuttondown) handler.

```
DROPEFFECT DoDragDrop(
Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/colelinkingdoc-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ A pointer to the specified item; NULL if the item is not found.

### Remarks

The default `COleLinkingDoc` implementation always returns NULL. This function is overriden in the derived class `COleServerDoc` to search the list of OLE server items for a linked item with the specified name (the name comparison is case sensitive). Override this function if you have implemented your own method of storing or retrieving linked server items.
The default `COleLinkingDoc` implementation always returns NULL. This function is overridden in the derived class `COleServerDoc` to search the list of OLE server items for a linked item with the specified name (the name comparison is case sensitive). Override this function if you have implemented your own method of storing or retrieving linked server items.

## <a name="register"></a> COleLinkingDoc::Register

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/coleobjectfactory-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ BOOL IsLicenseValid();

### Return Value

TRUE if successul; otherwise false.
TRUE if successful; otherwise false.

## <a name="isregistered"></a> COleObjectFactory::IsRegistered

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/colepastespecialdialog-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ enum Selection {
};
```

Brief desccriptions of these values follow:
Brief descriptions of these values follow:

- `COlePasteSpecialDialog::pasteLink` The Paste Link radio button was checked and the chosen format was a standard OLE format.

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/colevariant-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ A [CByteArray](../../mfc/reference/cbytearray-class.md) object to be copied into
A [CLongBinary](../../mfc/reference/clongbinary-class.md) object to be copied into the new `COleVariant` object.

*pidl*<br/>
A pointer to a [ITEMIDLIST](/windows/win32/api/shtypes/ns-shtypes-itemidlist) structure to be copied into the new `COleVariant` object.
A pointer to an [ITEMIDLIST](/windows/win32/api/shtypes/ns-shtypes-itemidlist) structure to be copied into the new `COleVariant` object.

### Remarks

Expand Down
4 changes: 2 additions & 2 deletions docs/mfc/reference/crecordset-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void Cancel();

### Remarks

The MFC ODBC classes no longer use asynchronous processing; to perform an asychronous operation, you must directly call the ODBC API function `SQLSetConnectOption`. For more information, see "Executing Functions Asynchronously" in the *ODBC SDK Programmer's Guide*.
The MFC ODBC classes no longer use asynchronous processing; to perform an asynchronous operation, you must directly call the ODBC API function `SQLSetConnectOption`. For more information, see "Executing Functions Asynchronously" in the *ODBC SDK Programmer's Guide*.

## <a name="cancelupdate"></a> `CRecordset::CancelUpdate`

Expand Down Expand Up @@ -1474,7 +1474,7 @@ When you call `Open`, a query, usually a SQL **`SELECT`** statement, selects rec
|**`SELECT`** column-list **`FROM`** table-list|The specified columns from the specified table(s).|`"SELECT CustId, CustName FROM`<br /><br /> `Customer"`|

> [!CAUTION]
> Don't insert extra whitespace in your SQL string. For example, if you insert whitespace between the curly brace and the **`CALL`** keyword, MFC will misinterpret the SQL string as a table name and incorporate it into a **`SELECT`** statement, which will result in an exception being thrown. Similarly, if your predefined query uses an output parameter, don't insert whitespace between the curly brace and the '' symbol. Finally, you must not insert whitespace before the curly brace in a **`CALL`** statement or before the **`SELECT`** keyword in a **`SELECT`** statment.
> Don't insert extra whitespace in your SQL string. For example, if you insert whitespace between the curly brace and the **`CALL`** keyword, MFC will misinterpret the SQL string as a table name and incorporate it into a **`SELECT`** statement, which will result in an exception being thrown. Similarly, if your predefined query uses an output parameter, don't insert whitespace between the curly brace and the '' symbol. Finally, you must not insert whitespace before the curly brace in a **`CALL`** statement or before the **`SELECT`** keyword in a **`SELECT`** statement.

The usual procedure is to pass `NULL` to `Open`; in this case, `Open` calls [GetDefaultSQL](#getdefaultsql). If you're using a derived `CRecordset` class, `GetDefaultSQL` gives the table name(s) you specified in `ClassWizard`. You can instead specify other information in the `lpszSQL` parameter.

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cricheditctrl-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ Contains the index value for the desired line in the text of the edit control, o

### Return Value

The character index of the line specified in *`nLine`* or -1 if the specified line number is greater then the number of lines in the edit control.
The character index of the line specified in *`nLine`* or -1 if the specified line number is greater than the number of lines in the edit control.

### Remarks

Expand Down
2 changes: 1 addition & 1 deletion docs/mfc/reference/cricheditdoc-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CRichEditDoc : public COleServerDoc
|----------|-----------------|
|[CRichEditDoc::CreateClientItem](#createclientitem)|Called to perform cleanup of the document.|
|[CRichEditDoc::GetStreamFormat](#getstreamformat)|Indicates whether stream input and output should include formatting information.|
|[CRichEditDoc::GetView](#getview)|Retrieves the asssociated [CRichEditView](../../mfc/reference/cricheditview-class.md) object.|
|[CRichEditDoc::GetView](#getview)|Retrieves the associated [CRichEditView](../../mfc/reference/cricheditview-class.md) object.|

### Public Data Members

Expand Down
Loading