UINT CMessageBox::Show(HWND hWnd, UINT nMessage, UINT nCaption, UINT uType, UINT nHelpID) { CMessageBox box; CString sMessage; CString sCaption; sMessage.LoadString(nMessage); sCaption.LoadString(nCaption); if (!IsWindow(hWnd)) hWnd = NULL; box.SetHelpID(nHelpID); return box.GoModal(CWnd::FromHandle(hWnd), sCaption, sMessage, box.FillBoxStandard(uType)); }