Jump to content

DrawAnimatedRects under Vista and Windows 7

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
POPikk

POPikk

    Newbie

  • Members
  • Pip
  • 3 posts
Why DrawAnimatedRects does not work under Vista/Win7?

For example, code below (animation into a Tray) works just fine under Windows XP, but does not work under Vista/Win7 (the window just hide, without animation):


var

ARect: TRect;

Wnd, Wnd2: HWND;


begin

Wnd:= FindWindow('Shell_TrayWnd', nil);

Wnd2:= FindWindowEx(Wnd, 0, 'TrayNotifyWnd', nil);

GetWindowRect(Wnd2, ARect);


DrawAnimatedRects(Form1.Handle, IDANI_CAPTION, BoundsRect, ARect);

....



Why?

Maybe Microsoft does not support this function (DrawAnimatedRects ) in their newer operation systems anymore?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Which version of Delphi?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
POPikk

POPikk

    Newbie

  • Members
  • Pip
  • 3 posts
Delphi 2007.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
This appears to be related, and may give you some ideas: Vista & DrawAnimatedRects - cppbuilder
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
POPikk

POPikk

    Newbie

  • Members
  • Pip
  • 3 posts

WingedPanther said:

This appears to be related, and may give you some ideas: Vista & DrawAnimatedRects - cppbuilder

Thank you. Same problem as I have... will read.