Jump to content
  • Advertisement
Sign in to follow this  
Kiristu

DrawAnimatedRects +Aero theme

This topic is 3172 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
Advertisement
Up ...

I know now that the same is in Vista, and this function won't work.
But I guess there is another one for that ....

Share this post


Link to post
Share on other sites
If you're using a regular window, you could just use ShowWindow with SW_MINIMIZE or SW_RESTORE as normal, but can I assume from your question that you aren't?

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!