关于调用api函数的声名问题!!

lw_wxy 2002-12-09 12:30:21
调用animatewindow()该如何声名!!!
...全文
52 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
888888888888 2002-12-10
  • 打赏
  • 举报
回复
关注!

另外帮我看看问题

把RT控件内容保存到一个BMP或JPG文件中,拜托在帮我看看。不是TRF格式


http://expert.csdn.net/Expert/topic/1238/1238213.xml?temp=.9565241
wu_07 2002-12-10
  • 打赏
  • 举报
回复
open事件中用到AW_BLEND可以用setredraw(true)刷新一下

还有不适合sheet,Child窗口


AnimateWindow (Handle ( This ) , 300, 262144 + 65536 + 16 )
写在close事件不好用!?我这里没有问题
lw_wxy 2002-12-10
  • 打赏
  • 举报
回复
我使用后效果出来了,不过关闭窗口不行,还有我的用户自定义的按钮图标都会拖后,这是怎么回事呀?,请赐教!!!
balloonman2002 2002-12-10
  • 打赏
  • 举报
回复
又说这是非技术版,,,
balloonman2002 2002-12-10
  • 打赏
  • 举报
回复
又说这是非技术版,,,
lw_wxy 2002-12-10
  • 打赏
  • 举报
回复
不好意思,参数弄错了,现在可以了,不过,关闭时,图象有点拉,有办法让他流畅一些吗?,最后的努力,谢谢斑竹!!
wu_07 2002-12-09
  • 打赏
  • 举报
回复
举两个例子

AnimateWindow ( Handle ( This ) , 300, 524288+ 65536 + 16)
AnimateWindow (Handle ( This ) , 300, 262144 + 65536 + 16 )

需要加上AW_CENTER ,AW_HIDE 两个参数
wu_07 2002-12-09
  • 打赏
  • 举报
回复
to hjd_cw
WINNT不适用,2000可以用的
lw_wxy 2002-12-09
  • 打赏
  • 举报
回复
那如果我想在关闭winodws 时用那应该怎么用呢?
hjd_cw 2002-12-09
  • 打赏
  • 举报
回复
WIN2000和WINNT不适用。
lw_wxy 2002-12-09
  • 打赏
  • 举报
回复
谢谢高手赐教,谢谢!!
wu_07 2002-12-09
  • 打赏
  • 举报
回复
pAnimate a Window
Starting with Win98, a new API is available to add a special effect to your application. The AnimateWindow() is very easy to use, you simply need to pass your window's handle, a delay and some flags to specify the desired effect. These effects are designed to enhance the opening or closing of a window. [local function declaration]
FUNCTION boolean AnimateWindow( long lhWnd, long lTm, long lFlags) &
LIBRARY 'user32'

[instance variable]
CONSTANT LONG AW_HOR_POSITIVE = 1
CONSTANT LONG AW_HOR_NEGATIVE = 2
CONSTANT LONG AW_VER_POSITIVE = 4
CONSTANT LONG AW_VER_NEGATIVE = 8
CONSTANT LONG AW_CENTER = 16
CONSTANT LONG AW_HIDE = 65536
CONSTANT LONG AW_ACTIVATE = 131072
CONSTANT LONG AW_SLIDE = 262144
CONSTANT LONG AW_BLEND = 524288

[powerscript, open event]
// slide right to left
AnimateWindow ( Handle( this ),500,AW_HOR_NEGATIVE)

// slide left to right
AnimateWindow ( Handle( this ),500,AW_HOR_POSITIVE)

// slide top to bottom
AnimateWindow ( Handle( this ),500,AW_VER_POSITIVE)

// slide bottom to top
AnimateWindow ( Handle( this ),500,AW_VER_NEGATIVE)

// from center expand
AnimateWindow ( Handle( this ),500,AW_CENTER)

// reveal diagonnally
AnimateWindow ( Handle( this ),500,AW_VER_NEGATIVE + AW_HOR_NEGATIVE)




Here some notes about the flags (from MSDN) AW_SLIDE Uses slide animation.
By default, roll animation is used.
This flag is ignored when used with the AW_CENTER flag.
AW_ACTIVATE Activates the window. Do not use this flag with AW_HIDE.
AW_BLEND Uses a fade effect.
This flag can be used only if hwnd is a top-level window.
AW_HIDE Hides the window. By default, the window is shown.
AW_CENTER Makes the window appear to collapse inward
if the AW_HIDE flag is used or expand outward
if the AW_HIDE flag is not used.
AW_HOR_POSITIVE Animates the window from left to right.
This flag can be used with roll or slide animation.
It is ignored when used with the AW_CENTER flag.
AW_HOR_NEGATIVE Animates the window from right to left.
This flag can be used with roll or slide animation.
It is ignored when used with the AW_CENTER flag.
AW_VER_POSITIVE Animates the window from top to bottom.
This flag can be used with roll or slide animation.
It is ignored when used with the AW_CENTER flag.
AW_VER_NEGATIVE Animates the window from bottom to top.
This flag can be used with roll or slide animation.
It is ignored when used with the AW_CENTER flag.
dotnba 2002-12-09
  • 打赏
  • 举报
回复

function boolean AnimateWindow ( long hwnd, long dwtime, long dwflags ) library "user32.dll"
lw_wxy 2002-12-09
  • 打赏
  • 举报
回复
好的谢谢
wu_07 2002-12-09
  • 打赏
  • 举报
回复
close
lw_wxy 2002-12-09
  • 打赏
  • 举报
回复
那2000 在关闭窗口在哪个事件触发呢?

401

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 非技术版
社区管理员
  • 非技术版社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧