The WM_PAINTICON message is sent to a minimized window when the icon is to be painted but only if the application is written for 16-bit Windows. A window receives this message only if a class icon is defined for the window; otherwise, WM_PAINT is sent instead.
WM_PAINTICON
This message has no parameters.
An application should return zero if it processes this message.
The DefWindowProc function draws the class icon. For compatibility with 16-bit Windows, wParam is TRUE. However, this value has no significance.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Icons Overview, Icon Messages, DefWindowProc, WM_ICONERASEBKGND, WM_PAINT