IMAPIFormContainer::RemoveForm
Applies to: Outlook 2013 | Outlook 2016
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. |