An application sends a ZGM_GETLASTBUTTONPRESSED message to get the index of the button data type cell that was last clicked.
ZGM_GETLASTBUTTONPRESSED
wParam = 0; //not used; must be zero
lParam = 0; //not used; must be zero
The return value is the cell index of the most recently clicked button data type cell.