有个问题我一直不知道怎么解决,请大家帮下忙。比如AnimateWindow这个函数,它带三个参数,第一个是窗口HANDLE,第二个是时间,第三个是决定如何开始显示窗口的参数,它可以填aw_blend,AW_CENTER 这些值..
AnimateWindow(handle,500,aw_blend);
AnimateWindow(handle,500,AW_CENTER);请问,当我在忘了它是填AW_CENTER这些值的时候,在哪里才能看到它是填这些值的呢?
(比如说,我想用这个函数,但我只记得它第三个参数是真XX_CENTER之类的,怎么才能看到它是填AW_CENTER的呢?)谢谢,我知道这肯定是个很简单的问题,但我就是不知道怎么解决。
AnimateWindow(handle,500,aw_blend);
AnimateWindow(handle,500,AW_CENTER);请问,当我在忘了它是填AW_CENTER这些值的时候,在哪里才能看到它是填这些值的呢?
(比如说,我想用这个函数,但我只记得它第三个参数是真XX_CENTER之类的,怎么才能看到它是填AW_CENTER的呢?)谢谢,我知道这肯定是个很简单的问题,但我就是不知道怎么解决。
如果是自己写的或第三方的函数(没HELP),用按ctrl并用mouse点击该函数,就可以看它的定义
像AnimateWindow比较特殊,因为delphi自带的windows SDK HELP较老,所以没有这个函数的HELP
你可上网找一下它的HELP
还有.如果你像我一样装有较新的microsoft的MSDN,就可以有所有windwos SDK的文档了,如:
AnimateWindow
[This is preliminary documentation and subject to change.] The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are two types of animation: roll animation and slide animation. BOOL AnimateWindow(
HWND hwnd, // handle to the window to animate
DWORD dwTime, // duration of animation
DWORD dwFlags // animation type
);
Parameters
hwnd
Specifies a handle to the window to animate.
dwTime
Specifies how long it takes to play the animation, in milliseconds. Typically, an animation takes 200 milliseconds to play.
dwFlags
Specifies the type of animation. This parameter can be one or more of the following flags. Flag Description
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 Animate 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 Animate 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 Animate 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 Animate 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.
Return Values
If the function succeeds, the return value is nonzero.If the function fails, the return value is zero. The function will fail in the following situations: The window uses the window region.
The window is already visible and you are trying to show the window.
The window is already hidden and you are trying to hide the window.
To get extended error information, call theGetLastError function. Res
You can combine the AW_HOR_POSITIVE or AW_HOR_NEGATIVE flag with the AW_VER_POSITIVE or AW_VER_NEGATIVE flag to animate a window diagonally. The window procedures for the window and its child windows may need to handle any WM_PRINT or WM_PRINTCLIENT messages. Dialog boxes, controls, and common controls already handle WM_PRINTCLIENT. The default window procedure already handles WM_PRINT. QuickInfo
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.See Also
Windows Overview, Window Functions,WM_PRINT,WM_PRINTCLIENT