procedure TForm1.ShowSystemMenu(const LPt: TPoint);
var
LMenu: HMENU;
LFlags: Cardinal;
LCommand: LongWord;
begin
LMenu :
= GetSystemMenu(FParentForm.Handle, False);
LFlags :
= TPM_RETURNCMD or GetSystemMetrics(SM_MENUDROPALIGNMENT);
LCommand :
= LongWord(TrackPopupMenu(LMenu, LFlags, LPt.X, LPt.Y, 0, FParentForm.Handle, nil));
PostMessage(FParentForm.Handle, WM_SYSCOMMAND, LCommand,
0);
end;

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-02-25
相关资源
相似解决方案