当前位置:编程学习 > wap >>

HandlePointerEventL之后触发了左键点击事件,为什么?

S60V5 单击屏幕HandlePointerEventL触发HandleListBoxEventL,HandleListBoxEventL触发HandleListBoxItemClickedL,但是为什么后面还触发了左键激活了菜单,这个是为什么呀

void CMyFinanceInvestmentAccountListBox::HandlePointerEventL(const TPointerEvent& aPointerEvent)
{
    if (iListBox->Rect().Contains( aPointerEvent.iPosition ))
    {
        iListBox->HandlePointerEventL(aPointerEvent);
    }
    else
    {
CCoeControl::HandlePointerEventL( aPointerEvent );
    }
    

    return;
}

void CMyFinanceInvestmentAccountListBox::HandleListBoxItemClickedL( 
CEikListBox* aListBox,
TListBoxEvent anEventType )
{
     iListItemIndex = aListBox->CurrentItemIndex();
    
}
--------------------编程问答-------------------- Can you copy paste the MyDialog.Designer.cs file here?-Tuck --------------------编程问答-------------------- --------------------编程问答-------------------- mark --------------------编程问答--------------------
补充:移动开发 ,  Symbian
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,