| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 646 人关注过本帖
标题:這是我做了好久的下雪代碼供大家參考
只看楼主 加入收藏
jxyga111
Rank: 8Rank: 8
来 自:中華人民共和國
等 级:贵宾
威 望:33
帖 子:6015
专家分:895
注 册:2008-3-21
结帖率:70%
收藏
 问题点数:0 回复次数:0 
這是我做了好久的下雪代碼供大家參考
Private Declare Function GetWindowLongA Lib "user32" (ByVal hwnd As Long, ByVal sx As Long) As Long
Private Declare Function SetWindowLongA Lib "user32" (ByVal hwnd As Long, ByVal item As Long, ByVal z As Long) As Long
Private Declare Function FindWindowA Lib "user32" (ByVal a As String, ByVal b As Long) As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal tm As Long, ByVal c As Long, ByVal d As Long) As Long

Private Sub Form_Activate()
    Picture1.Top = 0
    Picture1.Left = 0
    Picture1.Width = Me.Width
    Picture1.Height = Me.Height
    Picture1.Picture = LoadPicture(App.Path & "\07210edddcc067385982ddf0.jpg")
End Sub
Private Sub Form_Load()
Dim i As Long

Move 0, 0

i = GetWindowLongA(hwnd, -20)
i = i Or 32 Or 800000
SetWindowLongA hwnd, -20, i
SetLayeredWindowAttributes hwnd, 0, 120, 2
    i = FindWindowA("ProgMan", 0)
    SetParent hwnd, i

    i = GetWindow(i, 5)
   
End Sub
搜索更多相关主题的帖子: Lib 
2008-06-12 14:53
快速回复:這是我做了好久的下雪代碼供大家參考
数据加载中...
 
   



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

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