@2018-07-27
触摸屏幕窗口的无效部分实现 Dropdown 部件的折叠操作
> 具体代码
case WM_TOUCH:
if (pMsg->Data.p) // Something happened in our area (pressed or released)
{
const GUI_PID_STATE* pState;
pState = (const GUI_PID_STATE*)pMsg->Data.p; if (pState->Pressed)
{
if (WM_GetFocussedWindow() != pMsg->hWin)
{
hItem = WM_GetDialogItem(pMsg->hWin, ID_DROPDOWN_0); if( != DROPDOWN_GetListbox(hItem))
{
DROPDOWN_Collapse(hItem);
} hItem = WM_GetDialogItem(pMsg->hWin, ID_DROPDOWN_1); if( != DROPDOWN_GetListbox(hItem))
{
DROPDOWN_Collapse(hItem);
} hItem = WM_GetDialogItem(pMsg->hWin, ID_DROPDOWN_2); if( != DROPDOWN_GetListbox(hItem))
{
DROPDOWN_Collapse(hItem);
}
}
}
}
break;