CMFCOutlookBar::RemoveCustomPage

Removes a custom Outlook bar tab page.

BOOL RemoveCustomPage(
   UINT uiPage,
   CMFCOutlookBarTabCtrl* pTargetWnd 
);

Parameters

  • [in] uiPage
    Zero-based index of the page in the parent Outlook window.

  • [in] pTargetWnd
    Pointerto the parent Outlook window.

Return Value

Nonzero if the custom page has been removed successfully; otherwise 0.

Remarks

Call this function to delete custom pages. When the page is removed its control ID is returned to the pool of available IDs.

You must provide a pointer to CMFCOutlookBarTabCtrl Class object in which the page to be removed currently resides. Note that a user can move detachable pages between different Outlook bars, but the information about a custom page resides in the Outlook bar object for which you have called CMFCOutlookBar::CreateCustomPage.

Use CBaseTabbedPane::GetUnderlyingWindow to obtain a pointer to the Outlook window.

Requirements

Header: afxoutlookbar.h

See Also

Reference

CMFCOutlookBar Class

Hierarchy Chart