Author Topic: Window animation  (Read 5131 times)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Window animation
« on: June 26, 2017, 05:08:43 pm »
Here is an example of window animation.

To create the effect i am using a resource image,
however the good way to do it, is to create a memory bitmap and use WM_PRINT to render a screen shot of the window on the fly.
Of course this must be done BEFORE the window becomes visible (just like when using the AnimateWindow API).

This one is based on GDIPLUS, but the concept is the same for OpenGL.

Press the ESCape key to close the window.

...
Patrice
(Always working with the latest Windows version available...)

Emil Weiss

  • Guest
Re: Window animation
« Reply #1 on: June 26, 2017, 05:21:21 pm »
--
« Last Edit: January 07, 2018, 11:52:35 am by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1983
    • zapsolution
Re: Window animation
« Reply #2 on: June 26, 2017, 08:29:19 pm »
Emil,

That works on W10 too.
Patrice
(Always working with the latest Windows version available...)