windows_programming_notes.nbk: Home | Index | Next Page: DrawText | Previous Page: Drawing Lines with the Mouse


 DRAWITEMSTRUCT

Provides necessary information the owner window to determine how to paint an owner-drawn control or menu item. The owner window of the owner-drawn control or menu item receives a pointer to this structure as the lParam parameter of the WM_DRAWITEM message.

Syntax

    typedef struct tagDRAWITEMSTRUCT {
        UINT        CtlType;
        UINT        CtlID;
        UINT        itemID;
        UINT        itemAction;
        UINT        itemState;
        HWND        hwndItem;
        HDC         hDC;
        RECT        rcItem;
        ULONG_PTR   itemData;
    } DRAWITEMSTRUCT;

Members

Remarks

Some control types, such as status bars, do not set the value of CtlType.

Structure Information


windows_programming_notes.nbk: Home | Index | Next Page: DrawText | Previous Page: Drawing Lines with the Mouse


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