Win32, Window thread, system suspend

Started by
1 comment, last by murjara 16 years, 1 month ago
hi, on Windows OS, when for ex. dragging windows with mouse from it´s title bar, the main window thread is suspended by the system. When mouse is released the thread is resumed. Is there any way to find out how many, for ex. nanoseconds, the thread was suspended during dragging?
Advertisement
Handle the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE notifications, and record the time between them.

You can also handle the WM_MOVING notification if you want to do something while the window is being moved.

ok, I didn´t know that the window procedure is active during dragging. So the thread will also be active if the messages are being pumped, at least in some level. But thanks, I will try that:)

This topic is closed to new replies.

Advertisement