I want to know the title of menu which is clicked. We can know the menu title of photoshop cs. Photoshop's menu is drew when we open the menu from cs2.
I got the DRAWITEMSTRUCT information when Imonitor the WM_DRAWITEM event in windows. It is the DRAWITEMSTRUCT:
typedef struct tagDRAWITEMSTRUCT {
UINT CtlType;
UINT CtlID;
UINT itemID;
UINT itemAction;
UINT itemState;
HWND hwndItem;
HDC hDC;
RECT rcItem;
DWORD itemData;
} DRAWITEMSTRUCT
The detail information of menu is in other menuitem struct which is itemData point to. I know then itemData Address. But I don't knows the menuitem struct information.
Who can tell me the struct?
I think the photoshop menuitem is more than this:
typedef struct tagMENUITEM
{
CString strText;
UINT uID;
UINT uIndex;
int uPositionImageLeft;
}MENUITEM;
typedef MENUITEM * LPMENUITEM;