本文整理汇总了C++中CTabLayoutUI::SetVisible方法的典型用法代码示例。如果您正苦于以下问题:C++ CTabLayoutUI::SetVisible方法的具体用法?C++ CTabLayoutUI::SetVisible怎么用?C++ CTabLayoutUI::SetVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTabLayoutUI
的用法示例。
在下文中一共展示了CTabLayoutUI::SetVisible方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void CDuilib3dFrame::Notify(TNotifyUI& msg)
{
CStdString strName = msg.pSender->GetName();
if(msg.sType == _T("windowinit"))
{
}
else if (msg.sType == _T("click"))
{
if (strName == _T("closebtn"))
{
//Close();
m_cls.Create(m_hWnd,230,false,SW_MINIMIZE,CCloseAnimation::STYLE_CLOSE_ICON);
}
else if (strName == _T("scanbtn"))
{
CControlUI* pControl = m_PaintManager.FindControl(_T("testanibtn"));
RECT rc = pControl->GetPos();
rc.right = rc.left+64;
rc.bottom = rc.top+64;
POINT ptCenter = {rc.left+32,rc.top+32};
POINT ptTrans = {-120,100};
CAnimJobUI anim(0,500,ptCenter,ptTrans,1.0f,1.0f);
anim.SetTextureFromFile(_T("../bin/skin/texture.png"));
m_PaintManager.AddAnimJob(anim);
}
else if (strName == _T("common") || strName == _T("mumaoption")
|| strName == _T("shaduoption") || strName == _T("wangdunoption")
|| strName == _T("fdhoption") || strName == _T("rjgjoption"))
{
RECT rc = msg.pSender->GetPos();
POINT ptStartCenter = {rc.left+(rc.right-rc.left)/2,rc.top+(rc.bottom-rc.top)/2};
POINT ptTrans = {200,0};
CAnimJobUI anim(0,500,ptStartCenter,ptTrans,1.0f,1.0f,false,false,rc,rc);
anim.SetSpeedType(SPEED_LINEAR);
m_PaintManager.AddAnimJob(anim);
}
else if (strName == _T("testanibtn"))
{
}
}
else if(msg.sType==_T("selectchanged"))
{
CTabLayoutUI* pControl = static_cast<CTabLayoutUI*>(m_PaintManager.FindControl(_T("switch")));
RECT rcSrc = pControl->GetPos();
RECT rcClip = {rcSrc.left+1,rcSrc.top+1,rcSrc.right-1,rcSrc.bottom};;
long rcWidth = rcClip.right - rcClip.left;
long rcHeight = rcClip.bottom - rcClip.top;
CStdString stdString[8] = {_T("examine"),_T("trojan"),_T("plugins"),_T("vulnerability"),_T("rubbish"),_T("cleanup"),_T("fix"),_T("tool")};
POINT ptStartCenter = {rcClip.left+rcWidth/2,rcClip.top+rcHeight/2};
POINT ptTrans = {-rcWidth,0};
for (int i=0;i<8;++i)
{
if (strName == stdString[i])
{
CAnimJobUI anim(0,500,ptStartCenter,ptTrans,1.0f,1.0f,true,true,rcClip,rcClip);
m_PaintManager.AddAnimJob(anim);
pControl->SelectItem(i);
ptStartCenter.x += rcWidth;
CAnimJobUI animTmp(0,500,ptStartCenter,ptTrans,1.0f,1.0f,true,true,rcClip,rcClip,WM_USER+1,pControl);
if (m_PaintManager.AddAnimJob(animTmp))
{
pControl->SetVisible(false);
}
}
}
}
else if (msg.sType == _T("tabselect"))
{
}
}