loveamy / duilib

Automatically exported from code.google.com/p/duilib
0 stars 1 forks source link

在itemclick的时候能否区分左右键. #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
在CList当中不管你是鼠标左键还是有只有 itemclick 
消息,自己已经修改过了,可是每次SVN更新后都必须修改下.
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_RBUTTONDOWN )

Original issue reported on code.google.com by imnew...@gmail.com on 23 Jul 2012 at 8:31

GoogleCodeExporter commented 9 years ago
我也是同样的问题,希望开主能采纳,修改下。
非常感谢!

Original comment by luolai...@gmail.com on 13 Aug 2012 at 2:52

GoogleCodeExporter commented 9 years ago
@楼主,你完全可以通过发送ItemClick消息时用参数携带额外信�
��么(例如wparam)....在你的程序接收消息处理处 
简单的判断以下就好了 ( if ( UIEVENT_RBUTTONDOWN != msg.wParam ) 
),这样,你更新代码时svn不会冲突了

Original comment by huangys....@gmail.com on 4 Jun 2013 at 2:28