Newsgroup: it.comp.lang.c++
Titolo: Nuove API

Qualcuno mi dice dove posso trovare documentazione sulle nuove APi win98 ed
in particolare AnimateWindow() ?

in particolare AnimateWindow() ?
La rivista Dev ora in edicola ha un decente articolo in merito
(in italiano).  Qualcosa lo trovi in linea, in termini di "nuove API
NT5" (c'e` una certa sovrapposizione, ad esempio l'API
AnimateWindow che tu citi), alla URL:
http://www.microsoft.com/msj/1197/NT5DLL.htm
 (e` un
articolo, naturalmente in inglese, di Matt Pietrek, apparso
sul MS System Journal in Novembre '97); la seconda
parte dell'articolo, 
http://www.microsoft.com/msj/1297/nt5dll2.htm
,
e`, purtroppo, incompleta nella versione online, sigh.
Altri puntatori, cartacei e/o URL-acei, saranno benvenuti!
Alex

Spero che le informazioni qui riportate ti siano utili.
Donato
=========================
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.
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.
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 user3
Windows NT 5.0 or later
You can produce special effects when showing or hiding windows by using the
AnimateWindow function. When the window is animated in this manner, the
system will either roll or slide the window, depending on the flags you
specify in a call to AnimateWindow.
By default, the system uses roll animation. With this effect, the window
appears to roll open (showing the window) or roll closed (hiding the
window). You can use the dwFlags parameter to specify whether the window
rolls horizontally, vertically, or diagonally.
When you specify the AW_SLIDE flag, the system uses slide animation. With
this effect, the window appears to slide into view (showing the window) or
slide out of view (hiding the window). You can use the dwFlags parameter to
specify whether the window slides horizontally, vertically, or diagonally.
You can also use the AW_CENTER flag to make a window appear to collapse
inward or expand outward.
2.lib.


Grazie.