หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
The following example is a simple frame callback function. Register this callback by using the capSetCallbackOnFrame macro.
TCHAR gachBuffer[100]; // Global buffer.
DWORD gdwFrameNum = 0;
// FrameCallbackProc: frame callback function.
// hWnd: capture window handle.
// lpVHdr: pointer to structure containing captured
// frame information.
//
LRESULT PASCAL FrameCallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr)
{
if (!hWnd)
return FALSE;
_stprintf_s(gachBuffer, TEXT("Preview frame# %ld "), gdwFrameNum++);
SetWindowText(hWnd, gachBuffer);
return (LRESULT) TRUE ;
}
Related topics