feat: Added function to show toast messages, moved native error message function to libimhex

This commit is contained in:
WerWolv
2025-08-17 22:46:38 +02:00
parent 6c28adbd24
commit 3c9aa97f6c
12 changed files with 103 additions and 36 deletions

View File

@@ -56,11 +56,6 @@ namespace hex {
static Microsoft::WRL::ComPtr<ITaskbarList4> s_taskbarList;
static bool s_useLayeredWindow = true;
void nativeErrorMessage(const std::string &message) {
log::fatal("{}", message);
MessageBoxA(nullptr, message.c_str(), "Error", MB_ICONERROR | MB_OK);
}
// Custom Window procedure for receiving OS events
static LRESULT commonWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch (uMsg) {