本文整理汇总了C++中CLTGUICtrl::OnRButtonUp方法的典型用法代码示例。如果您正苦于以下问题:C++ CLTGUICtrl::OnRButtonUp方法的具体用法?C++ CLTGUICtrl::OnRButtonUp怎么用?C++ CLTGUICtrl::OnRButtonUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLTGUICtrl
的用法示例。
在下文中一共展示了CLTGUICtrl::OnRButtonUp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnRButtonUp
LTBOOL CFolderDisplay::OnRButtonUp(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 "left" message to the control.
if (nControlIndex == m_nRMouseDownItemSel)
{
if (pCtrl->IsEnabled())
{
if (GetSelectedControl() == m_pRendererCtrl)
{
// Get the current resolution
FolderDisplayResolution currentResolution=GetCurrentSelectedResolution();
LTBOOL handled = pCtrl->OnRButtonUp(x,y);
if (handled)
{
SetupResolutionCtrl();
// Set the resolution for the control
SetCurrentCtrlResolution(currentResolution);
}
return handled;
}
else if (pCtrl == m_pHardwareCursor)
{
return OnLeft();
}
else
{
SetSelection(nControlIndex);
return CBaseFolder::OnRButtonUp(x,y);
}
}
}
}
else
{
m_nRMouseDownItemSel= kNoSelection;
}
return LTFALSE;
}
示例2: OnRButtonUp
bool CScreenDisplay::OnRButtonUp(int x, int y)
{
uint16 nControlIndex=0;
if (GetControlUnderPoint(x, y, &nControlIndex))
{
CLTGUICtrl* pCtrl = GetControl(nControlIndex);
if (pCtrl == m_pGamma)
{
if (!pCtrl->OnRButtonUp(x,y)) return false;
pCtrl->UpdateData();
float fGamma = ConvertToGamma(m_nGamma);
WriteConsoleFloat("GammaR",fGamma);
WriteConsoleFloat("GammaG",fGamma);
WriteConsoleFloat("GammaB",fGamma);
return true;
}
}
return CBaseScreen::OnRButtonUp(x, y);
}
示例3: OnRButtonUp
LTBOOL CScreenDisplay::OnRButtonUp(int x, int y)
{
uint16 nControlIndex=0;
if (GetControlUnderPoint(x, y, &nControlIndex))
{
CLTGUICtrl* pCtrl = GetControl(nControlIndex);
if (pCtrl == m_pHardwareCursor)
{
return OnLeft();
}
if (pCtrl == m_pGamma)
{
if (!pCtrl->OnRButtonUp(x,y)) return LTFALSE;
pCtrl->UpdateData();
float fGamma = ConvertToGamma(m_nGamma);
WriteConsoleFloat("GammaR",fGamma);
WriteConsoleFloat("GammaG",fGamma);
WriteConsoleFloat("GammaB",fGamma);
return LTTRUE;
}
}
return CBaseScreen::OnRButtonUp(x, y);
}