WM_LBUTTONUP消息不响应
代码如下:都搞了三小时了,没找出问题来,郁闷!
//function handles input
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
//static mp_ctx_t* mpctx = NULL;
// hack to trans message to parent window
if((message >= WM_MOUSEFIRST && message <= WM_MOUSELAST))
{
MP_GET_INIT_CTX(ctx);
#ifdef _DEBUG
// mp_msg(0, 0, "messege(%x) \n", message);
#endif
if(ctx && ctx->hwnd_parent){
PostMessage(ctx->hwnd_parent, message, wParam, lParam);
}
}
switch (message)
{
case WM_LBUTTONDOWN:
{
break;
}
case WM_MOUSEMOVE:
{
break;
}
case WM_LBUTTONUP:
{
break;
}
}