Zitat von
Dunkel:
Msg kann nicht gleichzeitig WM_MOUSEMOVE únd WM_LBUTTONDOWN sein, was bei Deiner momentanen Abfrage aber der Fall sein müsste.
hmmm wo hat mich da das Pferd getreten .. richtig
danke
habs geändert
Delphi-Quellcode:
function VisualProc(WndHandle : HWND;
Msg : DWORD; wParam, lParam : Longint): longInt; stdcall;
var
ps : PAINTSTRUCT;
begin
if Msg = WM_ERASEBKGND then
begin
Result := 1;
exit;
end else
if Msg = WM_MOUSEMOVE then
begin
BassBoxInfo^.Msg := BBP_MOUSE;
BassBoxInfo^.WinMsg := Msg ;
BassBoxInfo^.wParam := wParam;
BassBoxInfo^.lParam := lParam;
BbpPluginFunc(BassBoxInfo^);
end else
if (Msg = WM_LBUTTONDOWN) then
begin
if (GetFocus <> WndHandle) then
SetFocus(WndHandle);
BassBoxInfo^.WinMsg := Msg ;
BassBoxInfo^.wParam := wParam;
BassBoxInfo^.lParam := lParam;
BbpPluginFunc(BassBoxInfo^);
end;
if Msg = WM_PAINT then
begin
BeginPaint(WndHandle, ps);
EndPaint(WndHandle, ps);
Result := 0;
Exit;
end;
result := DefWindowProc(WndHandle, Msg, wParam, lParam);
end;
gruss Emil