bool CClientConfigApp::yesNo (const ucstring &question) { if (m_pMainWnd) return MessageBoxW(*m_pMainWnd, (WCHAR*)question.c_str(), (WCHAR*)CI18N::get ("uiConfigTitle").c_str(), MB_YESNO|MB_ICONQUESTION) == IDYES; else return MessageBoxW(NULL, (WCHAR*)question.c_str(), (WCHAR*)CI18N::get ("uiConfigTitle").c_str(), MB_YESNO|MB_ICONQUESTION) == IDYES; }
void CClientConfigApp::error (const ucstring &message) { if (m_pMainWnd) { if (Localized) { MessageBoxW(*m_pMainWnd, (WCHAR*)message.c_str(), (WCHAR*)CI18N::get ("uiConfigTitle").c_str(), MB_OK|MB_ICONEXCLAMATION); } else { MessageBoxW(*m_pMainWnd, (WCHAR*)message.c_str(), (WCHAR*)ucstring("Ryzom Configuration").c_str(), MB_OK|MB_ICONEXCLAMATION); } } else MessageBoxW(NULL, (WCHAR*)message.c_str(), (WCHAR*)ucstring("Ryzom Configuration").c_str(), MB_OK|MB_ICONEXCLAMATION); }
// *************************************************************************** sint ucstrnicmp(const ucstring &s0, uint p0, uint n0, const ucstring &s1) { // start const ucchar *start1= s1.c_str(); uint lenS1= (uint)s1.size(); const ucchar *start0= s0.c_str(); uint lenS0= (uint)s0.size(); if(p0!=0) { if(p0<lenS0) { start0+= p0; lenS0-= p0; } else { start0+= lenS0; // points to '\0' lenS0= 0; } } lenS0= min(lenS0, n0); // compare character to character while(lenS0>0 && lenS1>0) { ucchar c0= toLower(*start0++); ucchar c1= toLower(*start1++); if(c0!=c1) return c0<c1?-1:+1; lenS0--; lenS1--; } // return -1 if s1>s0, 1 if s0>s1, or 0 if equals if(lenS1>0) return -1; else if(lenS0>0) return 1; else return 0; }
void CDynamicScenarioService::forwardIncarnChat(TChanID id,TDataSetRow senderId,ucstring sentence) { _Dms->forwardIncarnChat(id,senderId,sentence); nldebug("Forwarding dyn chat \"%s\" to dms",sentence.c_str()); }
void CUIDialog::windowSetText(HWND hDlg, int controlId, const ucstring &text) { sendDlgItemMessageUC(hDlg, controlId, WM_SETTEXT, 0, (LPARAM)text.c_str()); }