请教一个有关SetCapture()&ReleaseCapture()的问题! 100分
我对一个窗口设置了SetCapture(), 让它获得所有的Mouse Message.但是我想在做了一点处理后将这个发给原来它应该去的窗口,代码示例如下:
//别的地方已经SetCapture了
void CToolTip::OnLButtonDown(UINT nFlags, CPoint point)
{
ShowWindow(SW_HIDE);
ReleaseCapture();
//send a message to the appropriate window
ClientToScreen(&point);
CWnd* pWnd = WindowFromPoint(point);
pWnd->ScreenToClient(&point);
pWnd->SendMessage(WM_ACTIVATE, 0, 0);
pWnd->SendMessage(WM_LBUTTONDOWN, 0, MAKELONG(point.x, point.y));
CWnd::OnLButtonDown(nFlags, point);
}
可是别的窗口虽然做了OnLButtonDown中的事情,可就是不能整个窗口都显示到最前面,这是怎么回事?我应该发什么消息才好呢?