Under Windows 95/98/NT, message boxes do not have a default icon.

oldstable
Haithem Hmida 2000-07-09 12:16:36 +00:00 committed by Alexandre Julliard
parent ad28d39d98
commit fa861c2dd7
1 changed files with 6 additions and 2 deletions

View File

@ -110,9 +110,13 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSA lpmb)
(WPARAM16)LoadIcon16(0, IDI_ASTERISK16), 0);
break;
case MB_ICONHAND:
default:
SendDlgItemMessage16(hwnd, stc1, STM_SETICON16,
SendDlgItemMessage16(hwnd, stc1, STM_SETICON16,
(WPARAM16)LoadIcon16(0, IDI_HAND16), 0);
break;
default:
/* By default, Windows 95/98/NT do not associate an icon to message boxes.
* So wine should do the same.
*/
break;
}