Пример #1
0
WMSG_RESULT CUIBase::MouseMove(UINT16 x, UINT16 y, MSG* pMsg)
{
    if (m_bHide)
    {
        if (m_bEnter == true)
            OnLeave(x, y);

        return WMSG_FAIL;
    }

    // 창을 벗어나는 애들 때문에 빼주자~
    if (IsInside(x, y) == TRUE)
    {
        if (m_bEnter == false)
            OnEnter(x, y);
    }
    else
    {
        if (m_bEnter == true)
            OnLeave(x, y);
    }

    WMSG_RESULT ret = WMSG_FAIL;

    ret = OnMouseMove(x, y, pMsg);

    if (ret == WMSG_FAIL)
        ret = MouseMoveChild(x, y, pMsg);

    return ret;
}
Пример #2
0
LRESULT TrigPlayersWindow::WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	switch ( msg )
	{
		case WM_SHOWWINDOW:
			if ( wParam == FALSE )
				OnLeave();
			else if ( wParam == TRUE )
				RefreshWindow(trigIndex);
			return ClassWindow::WndProc(hWnd, msg, wParam, lParam);
			break;

		case WM_LBUTTONDOWN:
			SetFocus(getHandle());
			return ClassWindow::WndProc(hWnd, msg, wParam, lParam);
			break;

		case WM_CLOSE:
			OnLeave();
			return ClassWindow::WndProc(hWnd, msg, wParam, lParam);
			break;

		default:
			return ClassWindow::WndProc(hWnd, msg, wParam, lParam);
	}
	return 0;
}
Пример #3
0
LRESULT TrigGeneralWindow::WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch ( msg )
    {
        case WM_SHOWWINDOW:
            if ( wParam == FALSE )
                OnLeave();
            else if ( wParam == TRUE )
                RefreshWindow(trigIndex);
            break;

        case WM_CLOSE:
            OnLeave();
            return ClassWindow::WndProc(hWnd, msg, wParam, lParam);
            break;

        default:
            return ClassWindow::WndProc(hWnd, msg, wParam, lParam);
            break;
    }
    return 0;
}
//
// World Events
//
HRESULT CThingTreeCtrl::HandleOnUIEvent(IThing* pthing, BSTR bstrEventName, VARIANT varArg, BOOL bFromClient)
{
	static CComBSTR bstrNameChanged(VW_NAMECHANGED_EVENT_STR);
	static CComBSTR bstrOnEnter(VW_CONTENTENTER_EVENT_STR);
	static CComBSTR bstrOnLeave(VW_CONTENTLEAVE_EVENT_STR);

	CVWUIView::HandleOnUIEvent(pthing, bstrEventName, varArg, bFromClient);

	if (CompareElements(&bstrOnEnter, &bstrEventName))
		return OnEnter(pthing, varArg);
	else if (CompareElements(&bstrOnLeave, &bstrEventName))
		return OnLeave(pthing, varArg);
	else if (CompareElements(&bstrNameChanged, &bstrEventName))
		return NameChanged(pthing);

	return S_OK;
}
Пример #5
0
void wxDynamicSashWindowImpl::OnLeave(wxMouseEvent &event)
{
    if (m_leaf)
        m_leaf->OnLeave(event);
}