求教在指定位置弹出系统菜单的具体用法!分可加。。。

project 2002-07-19 01:26:43
求教在指定位置弹出系统菜单的具体用法!
我做了一个无标题Form用图片代替标题栏,想实现在点击某个图标是弹出系统菜单。
如:关闭、还原、最大化。。。
...全文
47 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
luoweicaisd 2002-07-19
  • 打赏
  • 举报
回复
var
mousepos: Tpoint;
begin
if message.lparam = WM_LBUTTONDBLCLK then
showmessage('不要乱动!')
else
if (message.lparam = WM_RBUTTONDBLCLK) then
begin
getcursorpos(mousepos);
popupmenu1.Popup(mousepos.x, mousepos.y);
end;
end;
luoweicaisd 2002-07-19
  • 打赏
  • 举报
回复
var
mousepos: Tpoint;
begin
if message.lparam = WM_LBUTTONDBLCLK then
showmessage('不要乱动!')
else
if (message.lparam = WM_RBUTTONDBLCLK) then
begin
getcursorpos(mousepos);
popupmenu1.Popup(mousepos.x, mousepos.y);
end;
end;
luoweicaisd 2002-07-19
  • 打赏
  • 举报
回复
var
mousepos: Tpoint;
begin
if message.lparam = WM_LBUTTONDBLCLK then
showmessage('不要乱动!')
else
if (message.lparam = WM_RBUTTONDBLCLK) then
begin
getcursorpos(mousepos);
popupmenu1.Popup(mousepos.x, mousepos.y);
end;
end;

5,386

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧