Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.39 KB

processing-tab-control-notification-messages.md

File metadata and controls

17 lines (13 loc) · 1.39 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Processing Tab Control Notification Messages
Processing Tab Control Notification Messages
11/04/2016
notifications [MFC], tab controls
CTabCtrl class [MFC], processing notifications
notifications [MFC], processing in CTabCtrl
processing notifications [MFC]
tab controls [MFC], processing notifications
758ccb7a-9e73-48f8-9073-23f7cb09918c

Processing Tab Control Notification Messages

As users click tabs or buttons, the tab control (CTabCtrl) 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 tab, you may want to preset control data on the page prior to displaying it.

Process WM_NOTIFY messages from the tab 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 tab control can send to its parent window, see the Notifications section of Tab Control Reference in the Windows SDK.

See also

Using CTabCtrl
Controls