Sign in to follow this  

DrawAnimatedRects +Aero theme

This topic is 2952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm trying to use the DrawAnimatedRects function with Windows 7. This function displays the title bar effect when minimizing or maximizing a window. Unfortunately, the visual effect is slightly different when the "Aero" theme is selected, and the function does not work anymore (produces no effect at all). I call it with: res = DrawAnimatedRects(hwnd, IDANI_CAPTION, &lprcFrom, &lprcTo); I tested it in classic theme, and I can see the effect, but nothing with Aero ... How I am suppose to play the minimize/maximize animation ? Shall I use this function or another one ? Thanks, K.

Share this post


Link to post
Share on other sites
In fact, yes this is a regular window, but I want to minimize it to a specific location, that is not in the taskbar.

I tried the ShowWindow to, at least, avoid the effect going to/from the taskbar. But, if it works more or less to show the window with SW_SHOWNORMAL, the SW_HIDE makes the taskbar button disappear ...
So, a workaround (worst case) would be to find a way to hide a window without making it disappear from taskbar.

Should I move it outside the screen ?? Is it "clean" ?

Share this post


Link to post
Share on other sites
Thanks.

I shouldn't be surprised, but I am !

However, this explains the values I got when I looked for the windows dimensions/positions with GetWindowRect.
I thought they where just not valid ...

Anyway, is there a way then to know the "normal" (maximized or just visible not full screen) position of a window before it was "minimized" or my application is supposed to manage it ?
I guess I have to manage it, if the minimizing is only a MoveWindow outside the screen.

Share this post


Link to post
Share on other sites
Quote:
Original post by Kiristu
Anyway, is there a way then to know the "normal" (maximized or just visible not full screen) position of a window before it was "minimized" or my application is supposed to manage it ?
Not that I'm aware of (there may be in plain Win32, but I usually use .NET WinForms). I usually store the old values myself, though that's usually for the purposes of storing the window position and state so it appears the same size it's started. Someone better versed in Win32 would be more qualified to answer these questions than me, though.

Share this post


Link to post
Share on other sites

This topic is 2952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this