◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── afx_msg void OnDrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct ); Parameter Description <lpDrawItemStruct> Specifies a long pointer to a DRAWITEMSTRUCT data structure that contains information about the item to be drawn and the type of drawing required. Remarks Called for the owner of an owner-draw button control, combo-box control, list-box control, or menu when a visual aspect of the control or menu has changed. The itemAction member of the ◄DRAWITEMSTRUCT► structure defines the drawing operation that is to be performed. The data in this member allows the owner of the control to determine what drawing action is required. Before returning from processing this message, an application should ensure that the device context identified by the <hDC> member of the ◄DRAWITEMSTRUCT► structure is restored to the default state. This message-handler member function calls Default. Override this member function in your derived class to handle the WM_DRAWITEM message. See Also ◄DRAWITEMSTRUCT►, ◄CWnd::Default►, ◄WM_DRAWITEM►, ◄CWnd::FromHandle► -♦-