Add RTL capability to localized msgbox function

Fix #8699, close #8701
This commit is contained in:
Scott Sumner 2020-08-12 16:45:24 -04:00 committed by Don HO
parent 394f762d6b
commit 03eebf8496

View File

@ -1320,5 +1320,9 @@ int NativeLangSpeaker::messageBox(const char *msgBoxTagName, HWND hWnd, const TC
title = stringReplace(title, TEXT("$STR_REPLACE$"), strInfo);
msg = stringReplace(msg, TEXT("$STR_REPLACE$"), strInfo);
}
if (_isRTL)
{
msgBoxType |= MB_RTLREADING | MB_RIGHT;
}
return ::MessageBox(hWnd, msg.c_str(), title.c_str(), msgBoxType);
}