Processing Tab Control Notification Messages

OverviewSample

As users click tabs or buttons, the tab control () 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 WizardBar or ClassWizard to create an 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 in the Platform SDK.

See Also   Windows Common Controls and MFC Classes