Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi WM_MENURBUTTONUP-Botschaft wird nicht erfasst??? (https://www.delphipraxis.net/61418-wm_menurbuttonup-botschaft-wird-nicht-erfasst.html)

TriphunEM 21. Jan 2006 09:13


WM_MENURBUTTONUP-Botschaft wird nicht erfasst???
 
Hallo,

mit der Botschaft WM_MENURBUTTONUP kann ich eine Klick mit der rechten Maustaste auf ein Item eines Mainmenüs abfangen, was soweit auch funktioniert.

Delphi-Quellcode:
 
private
    { Private-Deklarationen }
    procedure OpenPopup(var Msg: TMessage); message WM_MENURBUTTONUP;
...

procedure TForm1.OpenPopup(var Msg: TMessage);
begin
  Label1.Caption:=inttostr(Msg.LParam)+' '+inttostr(Msg.WParam);
  TrackPopupMenuex(PopUpMenu1.Handle, TPM_RECURSE, Mouse.CursorPos.x, Mouse.CursorPos.y, self.Handle, nil);
end;
Aber wenn ich das Mainmenu von der Form nehme und in eine Toolbar packe, reagiert mein Programm nicht mehr auf diese Windows-Botschaft! Warum????????

Kann es sein das die Toolbar die Botschaft vorher abfängt, wenn ja wie kann ich das verhindern???
Hat jemand eine Idee, wie ich das hinbekommen kann???

Danke...

MfG


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:44 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz