AnnSaveOffset example for Visual C++ 4.0 and later
HANDLE hFile = CreateFile("c:\\temp\\test.wmf", GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
if(hFile == INVALID_HANDLE_VALUE)
{
AfxMessageBox("Could not open file.");
return;
}
m_Lead1.AnnSaveOffset ((OLE_HANDLE)hFile, 0, hPlgn, ANNFMT_WMF, FALSE);
CloseHandle(hFile);