TAppInfo CContentProvider::LocalizedAppInfoL(const CInfo& aInfo, TInt aLanguageIndex) const { const RPointerArray<CString>& names = aInfo.Names(); const RPointerArray<CString>& vendors = aInfo.VendorNames(); // These two things can leave if the language specified is not present if (names.Count() <= aLanguageIndex) { User::Leave(KErrSISInfoSISNamesMissing); } CString* localizedName = names[aLanguageIndex]; if (vendors.Count() <= aLanguageIndex) { User::Leave(KErrSISInfoSISVendorNamesMissing); } CString* localizedVendor = vendors[aLanguageIndex]; const CVersion& version = aInfo.Version(); TVersion ver(version.Major(), version.Minor(), version.Build()); TAppInfo appaInfo = TAppInfo(localizedName->Data(), localizedVendor->Data(), ver); return appaInfo; }
void CSetting::OnButtonInfo() { // TODO: Add your control notification handler code here ShowWindow(SW_HIDE); CInfo dlg; dlg.m_username1=m_username; dlg.DoModal(); ShowWindow(SW_SHOW); }
void CSlot::Update( POINT ptMouse ) { if( m_pIcon ) { m_pIcon->Update( ptMouse ); CTDialog* pDlg = CTDialog::GetProcessMouseOverDialog(); if( pDlg && pDlg->GetDialogType() != m_iParentID ) { m_bClicked = false; return ; } if( m_bClicked ) { if( abs(m_ptClicked.x - ptMouse.x ) >= g_pCApp->GetWIDTH() / 200 || abs(m_ptClicked.y - ptMouse.y ) >= g_pCApp->GetHEIGHT() / 200 ) { m_pDragItem->SetIcon( m_pIcon ); CDragNDropMgr::GetInstance().DragStart( m_pDragItem ); m_bClicked = false; return; } } if( CWinCtrl::IsInside( ptMouse.x, ptMouse.y) ) { CInfo ToolTip; ToolTip.Clear(); m_pIcon->GetToolTip( ToolTip ,m_iParentID, m_dwTooltipType ); ptMouse.x += 20; ToolTip.SetPosition( ptMouse ); if( !ToolTip.IsEmpty() ) CToolTipMgr::GetInstance().RegistInfo( ToolTip ); } } }
void CCallOut::OnBnClickedOk() { // TODO: 在此添加控件通知处理程序代码 UpdateData(TRUE); if(m_strNumber.Trim().IsEmpty()) { CInfo info; info.SetInfo(IDI_ICON_ERROR, "坐席工号或外线号码不能为空!"); info.DoModal(); return; } int agentcheck = m_rdoAgent.GetCheck(); int outcheck = m_rdoOut.GetCheck(); if(agentcheck ==0 && outcheck == 1) { m_intAgentOrOut = 0;//外线 } else if(agentcheck == 1 && outcheck == 0) { m_intAgentOrOut = 1;//坐席 } else { CInfo info; info.SetInfo(IDI_ICON_ERROR, "坐席和外线需要至少选择一种!"); info.DoModal(); return; } // OnOK(); }
void CIconSkillClan::GetToolTip( CInfo& ToolTip, DWORD dwDialogType, DWORD dwType ) { CIconSkill::GetToolTip( ToolTip, dwDialogType, dwType ); CClanSkillSlot* pSkillSlot = CClan::GetInstance().GetClanSkillSlot(); CSkill* pSkill = pSkillSlot->GetSkill( m_iSkillSlot ); if( pSkill && pSkill->HasExpiredTime() ) { SYSTEMTIME st; DWORD dwExpiredTime = pSkill->GetExpiredTime(); classTIME::AbsSecondToSystem ( dwExpiredTime, st); ToolTip.AddString( CStr::Printf("%s : %d/%d/%d %d:%02d", STR_EXPIRED_TIME, st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute ) ); } }
void CIcon::GetToolTip( CInfo& ToolTip, DWORD dwDialogType, DWORD dwType ) { ToolTip.AddString( "CIcon" ); }