windows_programming_notes.nbk: Home | Index | Next Page: WM_DROPFILES | Previous Page: WM_DRAWCLIPBOARD


 WM_DRAWITEM

The WM_DRAWITEM message is sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed.

A window receives this message through its WindowProc function.

Parameters

Return Value

If an application processes this message, it should return TRUE.

Remarks

By default, the DefWindowProc function draws the focus rectangle for an owner-drawn list box item.

The itemAction member of the DRAWITEMSTRUCT structure specifies the drawing operation that an application should perform.

Before returning from processing this message, an application should ensure that the device context identified by the hDC member of the DRAWITEMSTRUCT structure is in the default state.

Notification Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WM_DROPFILES | Previous Page: WM_DRAWCLIPBOARD


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time