Ejemplo n.º 1
0
UINT CMessageBox::Show(HWND hWnd, LPCTSTR lpMessage, LPCTSTR lpCaption, UINT uType, LPCTSTR sHelpPath)
{
	CMessageBox box;

	if (!IsWindow(hWnd))
		hWnd = NULL;
	if (sHelpPath)
		box.SetHelpPath(sHelpPath);
	return box.GoModal(CWnd::FromHandle(hWnd), lpCaption, lpMessage, box.FillBoxStandard(uType));
}