找回密码
 加入
搜索
查看: 2822|回复: 2

[GUI管理] 求一个托盘消息框,能正常加载皮肤的

[复制链接]
发表于 2011-8-4 19:54:35 | 显示全部楼层 |阅读模式
在屏幕左下角滑入滑出的,论坛上搜到一个加载皮肤之后不正常
#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>


; Simple Example
_TrayMessageBox("托盘消息框", "这是一个托盘消息框文本" & @CRLF & @CRLF & "                 ...谢谢")


Func _TrayMessageBox($TBTitle, $TBText, $TBwidth = 220, $TBheight = 100, $display_Time = 5000)
    $TBgui = GUICreate($TBTitle, $TBwidth, $TBheight, @DesktopWidth - ($TBwidth + 12), @DesktopHeight - ($TBheight + 53), -1, $WS_EX_TOOLWINDOW)
    $Status = GUICtrlCreateLabel($TBText, 20, 20)
    DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $TBgui, "int", 1000, "long", 0x00040008);slide-in
    GUISetState()
    Sleep($display_Time)
    DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $TBgui, "int", 1000, "long", 0x00050004);slide-out
    GUIDelete($TBgui)
EndFunc   ;==>_TrayMessageBox
发表于 2011-8-5 19:20:34 | 显示全部楼层
不知道你想做成什么杨的效果?
 楼主| 发表于 2011-8-6 08:50:49 | 显示全部楼层
就是类似1楼代码的效果
在托盘图标处滑上来,然后滑下去
只是1楼代码加了皮肤之后,滑下去时就没有皮肤了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-11 01:37 , Processed in 0.086251 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表