The IMAPIMessageSite::MoveMessage method moves the current message to a folder.
See IMAPIMessageSite : IUnknown.
HRESULT MoveMessage(
LPFOLDER pFolderDestination,
LPMAPIVIEWCONTEXT pViewContext,
LPCRECT prcPosRect
);
Form objects call the IMAPIMessageSite::MoveMessage method to move the current message to a new folder.
A form viewer's implementation of MoveMessage must call the IMAPIViewContext::ActivateNext method, passing the VCDIR_MOVE flag, prior to actually moving the message to a new folder. To obtain the RECT structure used by a form's window, call the Windows GetWindowRect function.
For a list of interfaces related to form servers, see MAPI Form Interfaces.
Following the return of MoveMessage, forms must check for a current message and then dismiss themselves if none exists.
IMAPIViewContext::ActivateNext