专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
实现思路方法:(用VS.net可视化实现)新建个项目(notyicon)把右键菜单(contextmenu)拖入表单中.加入菜单子菜单项比如“显示”、“隐藏”等菜单项双击各菜单项为各菜单项加入单击事件比如:(显示)me.show(隐藏)me.hide把托盘Control控件拖入表单中设置其显示文字(.text)、图标文件(icon)设置托盘右键菜单(contextmenu)为你刚才创建菜单这样就很方便实现以前VB需要好多Win API才能实现功能附上该form源代 [阅读全文] [PDF]
隐藏任务条托盘区中时钟// 隐藏时钟procedure TForm1.Button1Click(Sender: TObject);var hn : HWnd;begin hn := FindWindowEx(FindWindowEx(FindWindow(\'Shell_TrayWnd\',nil),0, \'TrayNotyWnd\',nil),0,\'TrayClockWClass\',nil); hn [阅读全文] [PDF]
SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW); ShowWindow(Application.Handle, SW_RESTORE); ShowWindow(Application.Handle, SW_HIDE); procedure TfrmMain.SetNotyIcon(bShow: boolean); var & [阅读全文] [PDF]
1 共3条 分1页