void CWhatever::OnOK()
{
CWnd* pWnd = GetFocus();
if (pWnd)
pWnd->SetFocus();
CTabPage::OnOK();
}
The function was appropriately commented with a Doxygen comment stating "OK. This method is called by the framework when the user chooses the OK button."