Videovorschau (Windows Multimedia)
Im folgenden Beispiel wird das Makro capPreviewRate verwendet, um die Bildanzeigerate für den Vorschaumodus auf 66 Millisekunden pro Frame und dann mithilfe des Makros capPreview das Erfassungsfenster im Vorschaumodus zu platzieren.
// Create the capture window.
HWND hWndC = capCreateCaptureWindow(TEXT("My Capture Window"),
WS_CHILD | WS_VISIBLE, 0, 0, 160, 120, hwndParent, nID);
capPreviewRate(hWndC, 66); // rate, in milliseconds
capPreview(hWndC, TRUE); // starts preview
// Preview
capPreview(hWndC, FALSE); // disables preview