In windows 7 and windows 8 desktop mode there is a way to make your app all alone on screen - shake the window. Recently I found about great lib called Cinder. It has a very good tutorial with a cat in a window with snow!) So I wondered - how to catch and use window shake event on windows from C++ code in order to make a snow ball (I need current direction and speed of window "shake")?
Asked
Active
Viewed 369 times
3
-
You want to catch the user shaking your window? or the user shaking a window which minimizes your window? – MerickOWA Jan 05 '12 at 19:18
-
the user shaking my window. (window with cat and snow!=)) – myWallJSON Jan 05 '12 at 19:19
1 Answers
3
Your window will receive WM_MOVING
messages with the updated window position.

Raymond Chen
- 44,448
- 11
- 96
- 135