Fixed a few dependencies on 16-bit or internal functions. Fixed a few
warnings.
diff --git a/windows/msgbox.c b/windows/msgbox.c
index 6e54b1c..6fad242 100644
--- a/windows/msgbox.c
+++ b/windows/msgbox.c
@@ -98,20 +98,16 @@
/* Set the icon */
switch(lpmb->dwStyle & MB_ICONMASK) {
case MB_ICONEXCLAMATION:
- SendDlgItemMessage16(hwnd, stc1, STM_SETICON16,
- (WPARAM16)LoadIcon16(0, IDI_EXCLAMATION16), 0);
+ SendDlgItemMessageA(hwnd, stc1, STM_SETICON, LoadIconA(0, IDI_EXCLAMATIONA), 0);
break;
case MB_ICONQUESTION:
- SendDlgItemMessage16(hwnd, stc1, STM_SETICON16,
- (WPARAM16)LoadIcon16(0, IDI_QUESTION16), 0);
+ SendDlgItemMessageA(hwnd, stc1, STM_SETICON, LoadIconA(0, IDI_QUESTIONA), 0);
break;
case MB_ICONASTERISK:
- SendDlgItemMessage16(hwnd, stc1, STM_SETICON16,
- (WPARAM16)LoadIcon16(0, IDI_ASTERISK16), 0);
+ SendDlgItemMessageA(hwnd, stc1, STM_SETICON, LoadIconA(0, IDI_ASTERISKA), 0);
break;
case MB_ICONHAND:
- SendDlgItemMessage16(hwnd, stc1, STM_SETICON16,
- (WPARAM16)LoadIcon16(0, IDI_HAND16), 0);
+ SendDlgItemMessageA(hwnd, stc1, STM_SETICON, LoadIconA(0, IDI_HANDA), 0);
break;
default:
/* By default, Windows 95/98/NT do not associate an icon to message boxes.