Skip to content

Latest commit

 

History

History
70 lines (39 loc) · 1.86 KB

lvn-columnclick.md

File metadata and controls

70 lines (39 loc) · 1.86 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
LVN_COLUMNCLICK notification code (Commctrl.h)
Notifies a list-view control's parent window that a column header was clicked while the list-view control was in report mode. This notification code is sent in the form of a WM\_NOTIFY message.
a6bfbd6c-4778-47a7-92e9-9140d46d89cc
LVN_COLUMNCLICK notification code Windows Controls
apiref
LVN_COLUMNCLICK
Commctrl.h
HeaderDef
reference
05/31/2018

LVN_COLUMNCLICK notification code

Notifies a list-view control's parent window that a column header was clicked while the list-view control was in report mode. This notification code is sent in the form of a WM_NOTIFY message.

LVN_COLUMNCLICK

    pnmv = (LPNMLISTVIEW) lParam; 

Parameters

lParam

Pointer to an NMLISTVIEW structure. The iItem member is -1, and the iSubItem member identifies the column. All other members are zero.

Return value

No return value.

Remarks

Using header control formats such as HDF_CHECKBOX to modify the format of column headers in a list-view control causes the control to send the HDN_ITEMSTATEICONCLICK notification code instead of LVN_COLUMNCLICK when a header item is clicked.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h