please dont rip this site Prev Next

AnimateWindow info  Overview  Group

[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

   );

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_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 Value

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.

Remarks

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.

See Also

WM_PRINT, WM_PRINTCLIENT


file: /Techref/os/win/api/win32/func/src/f02_5.htm, 5KB, , updated: 2000/4/7 12:19, local time: 2022/5/26 01:47,
TOP NEW HELP FIND: 
18.205.176.39:LOG IN

 ©2022 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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f02_5.htm"> AnimateWindow</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2022 contributors:
o List host: MIT, Site host massmind.org, Top posters @20220526
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .