为什么按下鼠标,拖动鼠标,然后松开鼠标时,对 WM_LBUTTONDOWN,程序有响应,但是对 WM_LBUTTON不响应? 5

代码如下:caseWM_LBUTTONDOWN:var_Get(p_event->p_vout,"mouse-button-down",&val);val.i_int|=... 代码如下:
case WM_LBUTTONDOWN:

var_Get( p_event->p_vout, "mouse-button-down", &val );
val.i_int |= 1;
var_Set( p_event->p_vout, "mouse-button-down", val );
PostMessage(p_event->p_vout->p_sys->hparent, WM_LBUTTONDOWN, msg.wParam, MAKELPARAM(pt.x, pt.y));
if(hwnd != 0)
PostMessage(hwnd, WM_LBUTTONDOWN, msg.wParam, MAKELPARAM(pt.x, pt.y));

DirectXPopupMenu( p_event, false );
break;

case WM_LBUTTONUP:
var_Get( p_event->p_vout, "mouse-button-down", &val );
val.i_int &= ~1;
var_Set( p_event->p_vout, "mouse-button-down", val );
var_SetBool( p_event->p_vout, "mouse-clicked", true );
PostMessage(p_event->p_vout->p_sys->hparent, WM_LBUTTONUP, msg.wParam, MAKELPARAM(pt.x, pt.y));
if(hwnd != 0)
PostMessage(hwnd, WM_LBUTTONUP, msg.wParam, MAKELPARAM(pt.x, pt.y));

break;
展开
 我来答
百度网友56cb45345
2011-03-29 · TA获得超过479个赞
知道小有建树答主
回答量:808
采纳率:100%
帮助的人:548万
展开全部
这个你应该到CSDN上问,那里人多.这类问题很好解决,
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式