示例#1
0
bool
ActiveWindow::SetCapture()
{
    EventDispatch* dispatch = EventDispatch::GetInstance();
    if (dispatch)
        return dispatch->CaptureMouse(this) == 1;

    return false;
}
示例#2
0
bool
TacRefDlg::SetCaptureBeauty()
{
    EventDispatch* dispatch = EventDispatch::GetInstance();
    if (dispatch && beauty)
    return dispatch->CaptureMouse(beauty) ? true : false;

    return 0;
}