Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

OnCancel

Called when the user clicks the Cancel button (the button with an ID of IDCANCEL).

C++

virtual BOOL CSftTabsPage::OnCancel();

Comments

The OnCancel function is called when the user clicks the Cancel button (the button with an ID of IDCANCEL).

The default implementation of this member function doesn't respond to the button. It is up to the application to override this function to do any processing. Usually, the Cancel button is located on the parent dialog, not on a page attached to a tab, so the CSftTabsDialog::OnCancel member function would process the Cancel button event.

Example

This example shows an OnCancel member function of a CSftTabsPage based object. The page implements its own Cancel button. To process the Cancel button, it calls the parent dialog's OnCancel member function.

void CPage4::OnCancel()
{
    // Send Cancel to parent
    GetParentDialog()->OnCancel();
}

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.