}
/**
+ * @brief Lang aware version of AfxMessageBox()
+ */
+int NTAPI LangMessageBox(UINT nIDPrompt, UINT nType, UINT nIDHelp)
+{
+ String string = theApp.LoadString(nIDPrompt);
+ if (nIDHelp == (UINT)-1)
+ nIDHelp = nIDPrompt;
+ return AfxMessageBox(string.c_str(), nType, nIDHelp);
+}
+
+/**
* @brief Show messagebox with resource string having parameter.
* @param [in] msgid Resource string ID.
* @param [in] arg Argument string.
/** @brief Lang aware version of AfxFormatString2() */
void NTAPI LangFormatString2(CString &, UINT, LPCTSTR, LPCTSTR);
+ /** @brief Lang aware version of AfxMessageBox() */
+int NTAPI LangMessageBox(UINT, UINT nType = MB_OK, UINT nIDHelp = (UINT)-1);
+
/** @brief Format single-argument resource string and display via AfxMessageBox */
int ResMsgBox1(UINT msgid, LPCTSTR arg, UINT nType = MB_OK, UINT nIDHelp = 0);