예제 #1
0
LRESULT   CSkinButton2::OnMouseHover(WPARAM   wParam,   LPARAM   lParam) 
{ 	
	m_bMouseOnButton = TRUE;
	this->Invalidate();

	DeleteToolTip();

	SetToolTipText(m_tooltext);

	if (m_pToolTip != NULL)
	{
		if (::IsWindow(m_pToolTip->m_hWnd))
		{
		m_pToolTip->Update();
		}
	}
	return 1;
} 
예제 #2
0
LRESULT CAudioLevelIndicator::OnMouseHover(WPARAM wparam, LPARAM lparam)
{
    // TODO: Add your message handler code here and/or call default
    /* This line corrects a problem with the tooltips not displaying when
    the mouse passes over them, if the parent window has not been clicked yet.
    Normally this isn't an issue, but when developing multi-windowed apps, this
    bug would appear. Setting the ActiveWindow to the parent is a solution to that.
    */
    ::SetActiveWindow(GetParent()->GetSafeHwnd());
    //	Invalidate();
    DeleteToolTip();
    // Create a new Tooltip with new Button Size and Location
    SetToolTipText(m_csToolText);
    if (m_ToolTip != NULL)
        if (::IsWindow(m_ToolTip->m_hWnd))
            //Display ToolTip
            m_ToolTip->Update();

    return 0;
}
예제 #3
0
파일: ButtonBT.cpp 프로젝트: VincentWY/BtUI
//=============================================================================
LRESULT CButtonBT::OnMouseHover(WPARAM wparam, LPARAM lparam) 
//=============================================================================
{
	m_bIsHovering = TRUE;
	Invalidate();
	DeleteToolTip();

	// Create a new Tooltip with new Button Size and Location
	SetToolTipText(m_tooltext);

	if (m_pToolTip != NULL)
	{
		if (::IsWindow(m_pToolTip->m_hWnd))
		{
			//Display ToolTip
			m_pToolTip->Update();
		}
	}

	return 0;
}
예제 #4
0
//鼠标盘旋
LRESULT CPngButton::OnMouseHover(WPARAM wparam, LPARAM lparam) 
{
	m_bIsHovering = TRUE;
	Invalidate();
	DeleteToolTip();

	// 在当前按钮位置上创建一个新的提示控件
	SetToolTipText(m_tooltext);

	if (m_pToolTip.m_hWnd!=NULL)
	{
		if (::IsWindow(m_pToolTip.m_hWnd))
		{
			//显示提示
			m_pToolTip.Update();
		}
	}


	return 0;
}