Hallo.
Hat man auf seiner Form einen TButton und ein TXPManifest platziert und erstellt nun manuell die TJvAviCapture-Komponente*, so kommt es zu einer Endlosschleife in folgender Funktion:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24:
| function CustomWndProc(hWnd: HWND; Msg: UINT; wParam: WPARAM; lParam: LPARAM): LRESULT; stdcall; var SelfObj: TJvAVICapture; begin Result := 0;
SelfObj := TJvAVICapture(GetWindowLong(hWnd, GWL_USERDATA)); if SelfObj <> nil then begin if (Msg <> WM_NCHITTEST) or not (csDesigning in SelfObj.ComponentState) then PostMessage(TWinControl(SelfObj).Handle, Msg, wParam, lParam);
Result := CallWindowProc(SelfObj.FPreviousWndProc, hWnd, Msg, wParam, lParam); end; end; |
Ich hänge mal ein Testprojekt an, vllt. findet einer die Lösung für das Problem (JEDIs nicht benötigt, Dateien liegen bei).
*Wahrscheinlich auch, wenn man die Komponente auch normal auf der Form plaziert.
Grüße
GTA-Place
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)