void ShowLocalizedMsg(const UINT stringId, ...) { va_list args; va_start(args, stringId); MessageBox(NULL, __LoadLocalizedString(stringId, args), _T(PACKAGE_NAME), MB_OK | MB_SETFOREGROUND); va_end(args); }
PTSTR LoadLocalizedString(const UINT stringId, ...) { va_list args; va_start(args, stringId); PTSTR str = __LoadLocalizedString(stringId, args); va_end(args); return str; }
static int __ShowLocalizedMsgEx(const UINT type, LPCTSTR caption, const UINT stringId, va_list args) { return MessageBoxEx(NULL, __LoadLocalizedString(stringId, args), caption, type | MB_SETFOREGROUND, GetGUILanguage()); }