Skip to content

Commit a5e5c52

Browse files
authored
Merge pull request MicrosoftDocs#2202 from corob-msft/cr-1365
Fix indentation in CMFCListCtrl example per 1365
2 parents 412e2d8 + 9255a7d commit a5e5c52

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// DWORD dwStyle
2-
// CRect rectDummy
3-
m_wndWatch.Create(dwStyle, rectDummy, this, ID_LIST_1);
4-
m_wndWatch.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
5-
m_wndWatch.InsertColumn(0, _T("Variable"), LVCFMT_LEFT, 100);
6-
m_wndWatch.InsertColumn(1, _T("Value"), LVCFMT_LEFT, 100);
2+
// CRect rectDummy
3+
m_wndWatch.Create(dwStyle, rectDummy, this, ID_LIST_1);
4+
m_wndWatch.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
5+
m_wndWatch.InsertColumn(0, _T("Variable"), LVCFMT_LEFT, 100);
6+
m_wndWatch.InsertColumn(1, _T("Value"), LVCFMT_LEFT, 100);
77

8-
m_wndWatch.InsertItem(0, _T("m_nCount"));
9-
m_wndWatch.SetItemText(0, 1, _T("100"));
8+
m_wndWatch.InsertItem(0, _T("m_nCount"));
9+
m_wndWatch.SetItemText(0, 1, _T("100"));
1010

11-
m_wndWatch.SetFont(&m_Font);
11+
m_wndWatch.SetFont(&m_Font);

‎docs/mfc/reference/cmfclistctrl-class.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "CMFCListCtrl Class"
3-
ms.date: "11/04/2016"
3+
ms.date: "07/30/2019"
44
f1_keywords: ["CMFCListCtrl", "AFXLISTCTRL/CMFCListCtrl", "AFXLISTCTRL/CMFCListCtrl::EnableMarkSortedColumn", "AFXLISTCTRL/CMFCListCtrl::EnableMultipleSort", "AFXLISTCTRL/CMFCListCtrl::GetHeaderCtrl", "AFXLISTCTRL/CMFCListCtrl::IsMultipleSort", "AFXLISTCTRL/CMFCListCtrl::OnCompareItems", "AFXLISTCTRL/CMFCListCtrl::OnGetCellBkColor", "AFXLISTCTRL/CMFCListCtrl::OnGetCellFont", "AFXLISTCTRL/CMFCListCtrl::OnGetCellTextColor", "AFXLISTCTRL/CMFCListCtrl::RemoveSortColumn", "AFXLISTCTRL/CMFCListCtrl::SetSortColumn", "AFXLISTCTRL/CMFCListCtrl::Sort"]
55
helpviewer_keywords: ["CMFCListCtrl [MFC], EnableMarkSortedColumn", "CMFCListCtrl [MFC], EnableMultipleSort", "CMFCListCtrl [MFC], GetHeaderCtrl", "CMFCListCtrl [MFC], IsMultipleSort", "CMFCListCtrl [MFC], OnCompareItems", "CMFCListCtrl [MFC], OnGetCellBkColor", "CMFCListCtrl [MFC], OnGetCellFont", "CMFCListCtrl [MFC], OnGetCellTextColor", "CMFCListCtrl [MFC], RemoveSortColumn", "CMFCListCtrl [MFC], SetSortColumn", "CMFCListCtrl [MFC], Sort"]
66
ms.assetid: 50d16aee-138c-4f34-8690-cb75d544ef2e
@@ -113,7 +113,7 @@ A reference to the underlying [CMFCHeaderCtrl](../../mfc/reference/cmfcheaderctr
113113

114114
### Remarks
115115

116-
The header control for a list control is the window that contains the titles for the columns. It is usually positioned directly above the columns.
116+
The header control for a list control is the window that contains the titles for the columns. It's usually positioned directly above the columns.
117117

118118
## <a name="ismultiplesort"></a> CMFCListCtrl::IsMultipleSort
119119

@@ -155,11 +155,11 @@ virtual int OnCompareItems(
155155

156156
### Return Value
157157

158-
An integer that indicates the relative position of the two items. A negative value indicates that the first item should precede the second, positive value indicates that the first item should follow the second, and zero means that the two items are equivalent.
158+
An integer that indicates the relative position of the two items. A negative value indicates the first item should precede the second, a positive value indicates the first item should follow the second, and zero means the two items are equivalent.
159159

160160
### Remarks
161161

162-
The default implementation always returns 0. You must override this function to provide a sorting algorithm.
162+
The default implementation always returns 0. Override this function to provide your own sorting algorithm.
163163

164164
## <a name="ongetcellbkcolor"></a> CMFCListCtrl::OnGetCellBkColor
165165

@@ -207,15 +207,15 @@ virtual HFONT OnGetCellFont(
207207
[in] The column of the cell in question.
208208

209209
*dwData*<br/>
210-
[in] User-defined data. The default implementation does not use this parameter.
210+
[in] User-defined data. The default implementation doesn't use this parameter.
211211

212212
### Return Value
213213

214214
A handle to the font that is used for the current cell.
215215

216216
### Remarks
217217

218-
By default, this method returns NULL. All of the cells in a list control have the same font. Override this method in order to provide different fonts for different cells.
218+
By default, this method returns NULL. All of the cells in a list control have the same font. Override this method to provide different fonts for different cells.
219219

220220
## <a name="ongetcelltextcolor"></a> CMFCListCtrl::OnGetCellTextColor
221221

0 commit comments

Comments
 (0)