![]() |
SetCapture
Ich habe mit SetCapture(Handle) die Maus meinem Control zugeordnet (abgeleitet von TCustomControl). Aber wie komme ich jetzt an die Mausevents? Muß ich dazu jetzt einen lokalen Hook installieren :gruebel: :?: Die MouseDown/Move - Events werden nicht ausgelöst.
|
Re: SetCapture
Hi,
Hast du schon eine Lösung gefunden? |
Re: SetCapture
Zitat:
Delphi-Quellcode:
//start subclassing
OldWndProc := Pointer(SetWindowLong(Application.Handle, GWL_WNDPROC, Integer(@CalenderBoxWindowProc))); //all mouse message to this control SetCapture(Application.Handle); function CalenderBoxWindowProc(wnd: HWND; Msg: Cardinal; wParam, lParam: Integer): Integer; stdcall; begin //subclassing procedure for the mouse events if colorbox is showing case Msg of WM_LBUTTONDOWN: begin //code der ausgeführt werden soll wenn die mouse betätigt wird end; end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:34 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz