我记得vfw中有这样的函数,让我找找......
可以用这个消息WM_CAP_FILE_SET_INFOCHUNK,或用宏
capFileSetInfoChunk(hwnd, lpInfoChunk);
我有一个例子,不过是C语言版的,不知道对你有没有帮助,看看吧!
The following example uses a macro to set a copyright string to be inserted in all subsequent capture files:
CAPINFOCHUNK InfoChunk;
char szCopyright[] = "Copyright 1993 Microsoft Corp.";
InfoChunk.fccInfoID = mmioFOURCC ('I','C','O','P');
InfoChunk.lpData = (LPSTR) szCopyright;
InfoChunk.cbData = lstrlen (szCopyright) + 1;
// plus NULL byte
capFileSetInfoChunk (hwndCapture, &InfoChunk);
...
// Now remove the copyright info chunk
InfoChunk.fccInfoID = mmioFOURCC ('I','C','O','P');
InfoChunk.lpData = NULL;
capFileSetInfoChunk (hwndCapture, &InfoChunk);
// Now remove ALL information chunks
InfoChunk.fccInfoID = NULL;
capFileSetInfoChunk (hwndCapture, &InfoChunk);