I have reproduced the behavior with directx sdk Collision sample. It seems the Pause behavior is normal. DXUTPause traces the behavior.
[Win32] How to render on a window while it is in idle?
That window is in idle here means the window received WM_ENTERIDLE message, like after Alt key was pressed then released.
[Edited]
The rendering is to use DirectX to draw on HWND. While holding on the title bar of the window, all animations were paused.
[Edited]
It is under Windows 7.
Thanks a lot.
Kwik C.
2 answers
Sort by: Most helpful
-
Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
2021-11-05T06:55:23.377+00:00 -
RLWA32 40,286 Reputation points
2021-11-05T07:23:35.957+00:00 When clicking on the window caption and holding the mouse button down Windows enters a modal loop for window dragging. The system's modal loop will dispatch messages but your message loop is not called. Consequently, any code for DirectX drawing that it contains will not be executed. Windows also enters a modal loop for menu processing.