chsvlib
chsv helper source code

◆ MsgBox()

INT Chusov::Win32::GDI::MsgBox ( HWND  hParent,
UINT  nType,
LPCWSTR  lpszTitle,
LPCWSTR  lpszMessageFormat,
  ... 
)
noexcept

A wrap over the Windows MessageBoxW function providing Chusov::String::PrintfW formatting capability.

Parameters
[in]hParentis a window descriptor. Passed directly to the MessageBoxW function.
[in]nTypeis a type of the constructed message box. Passed directly to the MessageBoxW function.
[in]lpszTitleis a wide C string passed directly to the MessageBoxW function to specify a title for the constructed window.
[in]lpszMessageFormatis a string specifying format for the constructed message string together with additional parameters. The format string should be constructed according to the rules, specified for the Chusov::String::PrintfW function.
...is a set of additional parameters specified according to the lpszMessageFormat format string and the Chusov::String::PrintfW formatting rules.
Returns
The function returns a value returned by an underlying call to the MessageBoxW function.

In no case the function will generate an exception, neither avoid calling the MessageBoxW function. If strings being passed to the MessageBoxW are invalid, they are replaced by unspecified but valid ones.