Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.34 KB

processing-notification-messages-in-list-controls.md

File metadata and controls

19 lines (14 loc) · 1.34 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Processing Notification Messages in List Controls
Processing Notification Messages in List Controls
11/04/2016
processing notifications [MFC]
CListCtrl class [MFC], processing notifications
1f0e296e-d2a3-48fc-ae38-51d7fb096f51

Processing Notification Messages in List Controls

As users click column headers, drag icons, edit labels, and so on, the list control (CListCtrl) sends notification messages to its parent window. Handle these messages if you want to do something in response. For example, when the user clicks a column header, you might want to sort the items based on the contents of the clicked column, as in Microsoft Outlook.

Process WM_NOTIFY messages from the list control in your view or dialog class. Use the Class Wizard to create an OnChildNotify handler function with a switch statement based on which notification message is being handled.

For a list of the notifications a list control can send to its parent window, see List View Control Reference in the Windows SDK.

See also

Using CListCtrl
Controls