MCPcopy Create free account
hub / github.com/M2Team/NanaBox / ShowErrorMessageDialog

Function ShowErrorMessageDialog

NanaBox/Utils.cpp:539–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void ShowErrorMessageDialog(
540 _In_opt_ HWND ParentWindowHandle,
541 _In_ winrt::hresult_error const& Exception)
542{
543 ::ShowMessageDialog(
544 ParentWindowHandle,
545 Mile::WinRT::GetLocalizedString(
546 L"Messages/ErrorInstructionText"),
547 winrt::hstring(Mile::FormatWideString(
548 L"[0x%08lX] - %s",
549 static_cast<HRESULT>(Exception.code()),
550 Exception.message().c_str())));
551}
552
553void ShowErrorMessageDialog(
554 _In_ winrt::hresult_error const& Exception)

Callers 7

OnCreateMethod · 0.85
OnCloseMethod · 0.85
wWinMainFunction · 0.85
CreateButtonClickMethod · 0.85
ResizeButtonClickMethod · 0.85

Calls 1

ShowMessageDialogFunction · 0.85

Tested by

no test coverage detected