菜单菜单图标点击代码:
case WM_TOUCH_CHILD:
Id = WM_GetId(pMsg->hWinSrc); // Id of widget
switch (Id)
{
case ID_TEXT_0:
case ID_TEXT_1:
case ID_TEXT_2:
case ID_TEXT_3:
case ID_TEXT_4:
n = Id - ID_TEXT_0;
break;
case ID_IMAGE_0:
case ID_IMAGE_1:
case ID_IMAGE_2:
case ID_IMAGE_3:
case ID_IMAGE_4:
n = Id - ID_IMAGE_0;
break;
}
/* The Data.p pointer of the message points to the touch message
sent to the child window!! */
pState = (GUI_PID_STATE *)((WM_MESSAGE *)pMsg->Data.p)->Data.p;
if (pState)
{
if (pState->ressed)
{
if(n != p)
{
p = n;