[This is a preview of an interface that may appear in future releases of Windows.]
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 |
); |
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_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. |
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:
To get extended error information, call the GetLastError function.
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.
file: /Techref/os/win/api/win32/func/src/f02_5.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/29 21:31,
3.15.228.32:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f02_5.htm"> AnimateWindow</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.