Share via


CWnd::DrawAnimatedRects

Draws a wire-frame rectangle and animates it to indicate the opening of an icon or the minimizing or maximizing of a window.

BOOL DrawAnimatedRects( 
   int idAni, 
   CONST RECT *lprcFrom, 
   CONST RECT *lprcTo 
);

Parameters

  • idAni
    Specifies the type of animation. If you specify IDANI_CAPTION, the window caption will animate from the position specified by lprcFrom to the position specified by lprcTo. The effect is similar to minimizing or maximizing a window.

  • lprcFrom
    Pointer to a RECT structure specifying the location and size of the icon or minimized window.

  • lprcTo
    Pointer to a RECT structure specifying the location and size of the restored window

Return Value

Nonzero if the function succeeds; otherwise 0.

Remarks

This member function emulates the functionality of the function DrawAnimatedRects, as described in the Windows SDK.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart