Partager via


IMAPIFormContainer::RemoveForm

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Removes a particular form from a form container.

HRESULT RemoveForm(
  LPCSTR szMessageClass
);

Parameters

  • szMessageClass
    [in] A string that names the message class of the form to be removed from the form container. Message class names are always ANSI strings, never Unicode.

Return Value

  • S_OK
    The call succeeded and has returned the expected value or values.

  • MAPI_E_NOT_FOUND
    The message class passed in the szMessageClass parameter does not match the message class of any form in the form container.

MFCMAPI Reference

For MFCMAPI sample code, see the following table.

File

Function

Comment

FormContainerDlg.cpp

CFormContainerDlg::OnDeleteSelectedItem

MFCMAPI uses the IMAPIFormContainer::RemoveForm method to delete a form from a form container.

See Also

Reference

IMAPIFormContainer : IUnknown

Concepts

MFCMAPI as a Code Sample