发表于 2013-7-2 13:59:49

利用API函数如何让应用程序在任务栏上不显示

淡写轻描 发表于 2013-7-2 14:07:33

Public Const SW_HIDE = 0Public Const GW_OWNER = 4Declare Function GetWindow Lib "user32" Alias "GetWindow" (ByVal hwnd As _Long, ByVal wCmd As Long) As LongDeclare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd _As Long, ByVal nCmdShow As Long) As Long 将下面的代码添加到窗体的Load事件中:Dim rc As LongDim OwnerhWnd As Long'让窗体不可见Me.Visible = False'从任务管理器列表中移除OwnerhWnd = GetWindow(Me.hWnd, GW_OWNER)rc = ShowWindow(OwnerhWnd, SW_HIDE)请看本文中所用到的两个API函数GetWindow和ShowWindow的用法。
页: [1]
查看完整版本: 利用API函数如何让应用程序在任务栏上不显示