It seems to be more simple.
Application.HookMainWindow(AppHookFunc);
function XX.AppHookFunc(var Msg: TMessage): boolean;
begin
If Msg.Msg = WM_INITMENU then
Result:= false;
end;
Now, if I click with the right button, no more popup menu is displayed.
But I still don't know how to get...
Thanks.
So, I can get the handle of the taskbar
var
AppData: TAppBarData;
begin
// 'Shell_TrayWnd' is the name of the task bar's window
AppData.Hwnd := FindWindow('Shell_TrayWnd', nil);
But how can i detect a click on the button corresponding to my application ?
Thanks anyway,
As you can see, applications developped with Delphi have a shorter popup menu than other applications. Normally, you can access this button using the application handle :
- to hide it:
ShowWindow(Application.handle, SW_HIDE)
- to add more items...
Hi,
I'd like to know which message are send to the application when the user right click on the application button located in the TaskBar (or AppBar).
I'd like to replace the default windows popup by my own popup menu.
ATT: I don't want to add more items to the system menu but completely...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.