Cisco Cisco Computer Telephony Integration Option 9.0 开发者指南

下载
页码 35
CTI OS Internationalization Toolkit 
 
26 of 35 
4.  Retrieve translated text strings and display them: 
 
 
 
 
 
 
 
LRESULT CIntResKitSample::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM 
lParam, BOOL&  bHandled){ 
bstrText=m_IntKit->GetTextStringDefault(CTIOS_AGENTPHONE_APPNAME,  
 
 
 
                    OLESTR("CTI OS Agent Softphone")); 
this->SetWindowText(bstrText);  
 
 
bstrText=m_IntKit->GetTextStringDefault(CTIOS_AGENTPHONE_PHONELOADING,  
                                         OLESTR("Phone Loading..."));
 
 
::SetWindowText(this->GetDlgItem(IDC_MESSAGE),bstrText); 
 
}//end OnInitdialog 
5.  Changing language: 
 
 
 
 
 
 
 
 
LRESULT CIntResKitSample::OnEnglishClicked(WORD wNotifyCode, WORD wID,     
HWND hWndCtl, BOOL& bHandled){ 
m_IntKit->PutLanguageID(0x409); 
bstrText=m_IntKit->GetTextStringDefault(CTIOS_AGENTPHONE_APPNAME,  
 
 
 
                    OLESTR("CTI OS Agent Softphone")); 
this->SetWindowText(bstrText);  
 
 
bstrText=m_IntKit->GetTextStringDefault(CTIOS_AGENTPHONE_PHONELOADING,  
                                         OLESTR("Phone Loading..."));
 
 
::SetWindowText(this->GetDlgItem(IDC_MESSAGE),bstrText); 
 
}//end OnEnglishClicked 
 
Cisco Systems, Inc.