本文整理汇总了C++中CLTGUICtrl::UpdateData方法的典型用法代码示例。如果您正苦于以下问题:C++ CLTGUICtrl::UpdateData方法的具体用法?C++ CLTGUICtrl::UpdateData怎么用?C++ CLTGUICtrl::UpdateData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLTGUICtrl
的用法示例。
在下文中一共展示了CLTGUICtrl::UpdateData方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnRight
LTBOOL CScreenDisplay::OnRight()
{
if (!CBaseScreen::OnRight()) return LTFALSE;
CLTGUICtrl* pCtrl = GetSelectedControl();
if (pCtrl == m_pHardwareCursor)
{
m_pHardwareCursor->UpdateData(LTTRUE);
if (m_bHardwareCursor)
{
MBCreate mb;
mb.eType = LTMB_YESNO;
mb.pFn = AreYouSureCallBack;
mb.pData = this;
g_pInterfaceMgr->ShowMessageBox(IDS_CONFIRM_CURSOR,&mb,0,LTFALSE);
}
else
{
g_pCursorMgr->UseHardwareCursor(LTFALSE);
WriteConsoleInt("HardwareCursor",0);
}
}
if (pCtrl == m_pGamma)
{
pCtrl->UpdateData();
float fGamma = ConvertToGamma(m_nGamma);
WriteConsoleFloat("GammaR",fGamma);
WriteConsoleFloat("GammaG",fGamma);
WriteConsoleFloat("GammaB",fGamma);
}
return LTTRUE;
}
示例2: OnRight
bool CScreenDisplay::OnRight()
{
if (!CBaseScreen::OnRight()) return false;
CLTGUICtrl* pCtrl = GetSelectedControl();
if (pCtrl == m_pGamma)
{
pCtrl->UpdateData();
float fGamma = ConvertToGamma(m_nGamma);
WriteConsoleFloat("GammaR",fGamma);
WriteConsoleFloat("GammaG",fGamma);
WriteConsoleFloat("GammaB",fGamma);
}
return true;
}
示例3: 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);
}
示例4: 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);
}