windows_programming_notes.nbk: Home | Index | Next Page: WM_COMPAREITEM | Previous Page: WM_COMMAND
The WM_COMPACTING message is sent to all top-level windows when the system detects more than 12.5 percent of system time over a 30- to 60-second interval is being spent compacting memory. This indicates that system memory is low.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc( HWND hwnd, // handle to window UINT uMsg, // WM_COMPACTING WPARAM wParam, // compacting ratio LPARAM lParam // not used );
If an application processes this message, it should return zero.
When an application receives this message, it should free as much memory as possible, taking into account the current level of activity of the application and the total number of applications running on the system.
Windows NT/2000 or later: Requires Windows NT 3.1 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_COMPAREITEM | Previous Page: WM_COMMAND
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time