0 Replies Latest reply: Jun 2, 2014 5:19 AM by pzwhz RSS

    I want to know the struct of itemData point.

    pzwhz Community Member

      The menu of Photoshop is owerdraw style. The itemData is point to a struct. I want to know what is the struct of itemData point.

      /*

      * DRAWITEMSTRUCT for ownerdraw

      */

      typedef struct tagDRAWITEMSTRUCT {

          UINT        CtlType;

          UINT        CtlID;

          UINT        itemID;

          UINT        itemAction;

          UINT        itemState;

          HWND        hwndItem;

          HDC         hDC;

          RECT        rcItem;

          ULONG_PTR   itemData;

      } DRAWITEMSTRUCT, NEAR *PDRAWITEMSTRUCT, FAR *LPDRAWITEMSTRUCT;

       

       

      Can I get the text of the menuitem from the struct?