mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 14:24:09 -06:00
9.34
This commit is contained in:
committed by
Kornel Lesiński
parent
83f8ddcc5b
commit
f08f4dcc3c
Executable → Regular
+7
-28
@@ -4,12 +4,10 @@
|
||||
|
||||
#include "MyMessages.h"
|
||||
|
||||
#include "Windows/Error.h"
|
||||
#include "Windows/ResourceString.h"
|
||||
#include "../../../Windows/ErrorMsg.h"
|
||||
#include "../../../Windows/ResourceString.h"
|
||||
|
||||
#ifdef LANG
|
||||
#include "../FileManager/LangUtils.h"
|
||||
#endif
|
||||
|
||||
using namespace NWindows;
|
||||
|
||||
@@ -18,41 +16,22 @@ void ShowErrorMessage(HWND window, LPCWSTR message)
|
||||
::MessageBoxW(window, message, L"7-Zip", MB_OK | MB_ICONSTOP);
|
||||
}
|
||||
|
||||
void ShowErrorMessageHwndRes(HWND window, UINT resID
|
||||
#ifdef LANG
|
||||
, UInt32 langID
|
||||
#endif
|
||||
)
|
||||
void ShowErrorMessageHwndRes(HWND window, UINT resID)
|
||||
{
|
||||
ShowErrorMessage(window,
|
||||
#ifdef LANG
|
||||
LangString(resID, langID)
|
||||
#else
|
||||
MyLoadStringW(resID)
|
||||
#endif
|
||||
);
|
||||
ShowErrorMessage(window, LangString(resID));
|
||||
}
|
||||
|
||||
void ShowErrorMessageRes(UINT resID
|
||||
#ifdef LANG
|
||||
, UInt32 langID
|
||||
#endif
|
||||
)
|
||||
void ShowErrorMessageRes(UINT resID)
|
||||
{
|
||||
ShowErrorMessageHwndRes(0, resID
|
||||
#ifdef LANG
|
||||
, langID
|
||||
#endif
|
||||
);
|
||||
ShowErrorMessageHwndRes(0, resID);
|
||||
}
|
||||
|
||||
void ShowErrorMessageDWORD(HWND window, DWORD errorCode)
|
||||
{
|
||||
ShowErrorMessage(window, NError::MyFormatMessageW(errorCode));
|
||||
ShowErrorMessage(window, NError::MyFormatMessage(errorCode));
|
||||
}
|
||||
|
||||
void ShowLastErrorMessage(HWND window)
|
||||
{
|
||||
ShowErrorMessageDWORD(window, ::GetLastError());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user