Default Status Window Message Processing
This section describes the window messages handled by the window procedure for the predefined STATUSCLASSNAME window class.
Message | Default processing |
WM_CREATE | Initializes the status window. |
WM_DESTROY | Frees resources allocated for the status window. |
WM_GETFONT | Returns the handle to the current font with which the status window draws its text. |
WM_GETTEXT | Copies the text from the first part of a status window to a buffer. It returns a 32-bit value that specifies the length, in characters, of the text and the technique used to draw the text. |
WM_GETTEXTLENGTH | Returns a 32-bit value that specifies the length, in characters, of the text in the first part of a status window and the technique used to draw the text. |
WM_NCHITTEST | Returns the HTBOTTOMRIGHT value if the mouse cursor is in the sizing grip, causing the system to display the sizing cursor. If the mouse cursor is not in the sizing grip, the status window passes this message to the DefWindowProc function. |
WM_PAINT | Paints the invalid region of the status window. If the wParam parameter is non-NULL, the control assumes that the value is an HDC and paints using that device context. |
WM_SETFONT | Selects the font handle into the device context for the status window. |
WM_SETTEXT | Copies the specified text into the first part of a status window, using the default drawing operation (specified as zero). It returns TRUE if successful or FALSE otherwise. |
WM_SIZE | Resizes the status window based on the current width of the parent window's client area and the height of the current font of the status window. |