Freigeben über


IMAPIFormContainer::RemoveForm

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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