diff options
Diffstat (limited to '7zip/UI/Explorer/MyMessages.cpp')
-rwxr-xr-x | 7zip/UI/Explorer/MyMessages.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/7zip/UI/Explorer/MyMessages.cpp b/7zip/UI/Explorer/MyMessages.cpp index 3ec59f99..61d2429d 100755 --- a/7zip/UI/Explorer/MyMessages.cpp +++ b/7zip/UI/Explorer/MyMessages.cpp @@ -20,17 +20,30 @@ void MyMessageBox(HWND window, LPCWSTR message) ::MessageBoxW(window, message, L"7-Zip", 0); } -void MyMessageBox(UINT32 id +void MyMessageBoxResource(HWND window, UINT32 id #ifdef LANG ,UINT32 langID #endif ) { #ifdef LANG - MyMessageBox(LangString(id, langID)); + MyMessageBox(window, LangString(id, langID)); #else - MyMessageBox(MyLoadStringW(id)); + MyMessageBox(window, MyLoadStringW(id)); + #endif +} + +void MyMessageBox(UINT32 id + #ifdef LANG + ,UINT32 langID + #endif + ) +{ + MyMessageBoxResource(0, id + #ifdef LANG + , langID #endif + ); } void ShowErrorMessage(HWND window, DWORD message) |