当前位置: 首页>>代码示例>>C++>>正文


C++ CLTGUICtrl::OnLButtonUp方法代码示例

本文整理汇总了C++中CLTGUICtrl::OnLButtonUp方法的典型用法代码示例。如果您正苦于以下问题:C++ CLTGUICtrl::OnLButtonUp方法的具体用法?C++ CLTGUICtrl::OnLButtonUp怎么用?C++ CLTGUICtrl::OnLButtonUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CLTGUICtrl的用法示例。


在下文中一共展示了CLTGUICtrl::OnLButtonUp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: OnLButtonUp

LTBOOL CFolderDisplay::OnLButtonUp(int x, int y)
{
	// Get the control that the click was on
	int nControlIndex=0;
	if (GetControlUnderPoint(x, y, &nControlIndex))
	{
		CLTGUICtrl* pCtrl = GetControl(nControlIndex);
		if (m_pCaptureCtrl && pCtrl != m_pCaptureCtrl)
            return LTFALSE;
		// If the mouse is over the same control now as it was when the down message was called
		// then send the "enter" message to the control.
		if (nControlIndex == m_nLMouseDownItemSel)
		{
			if (pCtrl->IsEnabled() )
			{
				if (pCtrl == m_pRendererCtrl)
				{
					// Get the current resolution
					FolderDisplayResolution currentResolution=GetCurrentSelectedResolution();
                    LTBOOL handled = pCtrl->OnLButtonUp(x, y);
					if (handled)
					{
						SetupResolutionCtrl();

						// Set the resolution for the control
						SetCurrentCtrlResolution(currentResolution);
					}
					return handled;
				}
				else if (pCtrl == m_pHardwareCursor)
				{
					return OnRight();
				}
				else
				{
					SetSelection(nControlIndex);
					return CBaseFolder::OnLButtonUp(x,y);
				}
			}

		}
	}
	else
	{
		m_nLMouseDownItemSel= kNoSelection;
	}
    return LTFALSE;
}
开发者ID:germanocaldeira,项目名称:no-one-lives-forever,代码行数:48,代码来源:FolderDisplay.cpp

示例2: OnLButtonUp

bool CScreenDisplay::OnLButtonUp(int x, int y)
{

	uint16 nControlIndex=0;
	if (GetControlUnderPoint(x, y, &nControlIndex))
	{
		CLTGUICtrl* pCtrl = GetControl(nControlIndex);
		if (pCtrl == m_pGamma)
		{
			if (!pCtrl->OnLButtonUp(x,y)) return false;
			pCtrl->UpdateData();
			float fGamma = ConvertToGamma(m_nGamma);
			WriteConsoleFloat("GammaR",fGamma);
			WriteConsoleFloat("GammaG",fGamma);
			WriteConsoleFloat("GammaB",fGamma);
			return true;
		}
	}

	return CBaseScreen::OnLButtonUp(x, y);
}
开发者ID:Arc0re,项目名称:lithtech,代码行数:21,代码来源:ScreenDisplay.cpp

示例3: OnLButtonUp

LTBOOL CScreenDisplay::OnLButtonUp(int x, int y)
{
	uint16 nControlIndex=0;
	if (GetControlUnderPoint(x, y, &nControlIndex))
	{
		CLTGUICtrl* pCtrl = GetControl(nControlIndex);
		if (pCtrl == m_pHardwareCursor)
		{
			return OnRight();
		}
		if (pCtrl == m_pGamma)
		{
			if (!pCtrl->OnLButtonUp(x,y)) return LTFALSE;
			pCtrl->UpdateData();
			float fGamma = ConvertToGamma(m_nGamma);
			WriteConsoleFloat("GammaR",fGamma);
			WriteConsoleFloat("GammaG",fGamma);
			WriteConsoleFloat("GammaB",fGamma);
			return LTTRUE;
		}
	}
	return CBaseScreen::OnLButtonUp(x, y);
}
开发者ID:Arc0re,项目名称:lithtech,代码行数:23,代码来源:ScreenDisplay.cpp


注:本文中的CLTGUICtrl::OnLButtonUp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。