Release 960521

Tue May 21 14:06:07 1996  Alexandre Julliard  <julliard@lrc.epfl.ch>

	* [controls/button.c]
	Made ButtonWndProc a 32-bit window procedure.

	* [controls/desktop.c]
	Made DesktopWndProc a 32-bit window procedure.
	Added handling of WM_SETCURSOR.

	* [controls/menu.c]
	Allocate menu items and strings on the 32-bit system heap.
	Implemented Win32 versions for ChangeMenu, InsertMenu, ModifyMenu,
	AppendMenu and LoadMenuIndirect.

	* [controls/widgets.c]
	Added possibility to have 32-bit built-in classes.

	* [files/drive.c]
	Implemented GetLogicalDrive() and GetLogicalDriveStrings().

	* [misc/spy.c] [include/spy.h]
	Added support for spying Win32 messages.

	* [loader/builtin.c]
	Fixed bug in -dll option parsing.

	* [memory/local.c]
	Added back the change by Huw D. M. Davies to free the block in
	LocalRealloc() before allocating the new one.

	* [objects/bitmap.c] [objects/cursoricon.c] [objects/oembitmap.c]
	Fixed bug in bitmap size that caused memory corruption for 24bpp.

	* [windows/defwnd.c]
	Implemented Win32 version of DefWindowProc().

	* [windows/dialog.c]
	Implemented Win32 version of SendDlgItemMessage,
	Get/SetDlgItemText and Get/SetDlgItemInt.

	* [windows/mdi.c]
	Implemented Win32 version of DefFrameProc() and DefMDIChildProc().
	Don't make a copy of the OBM bitmaps for every MDI window.

	* [windows/message.c]
	Implemented Win32 version of SendMessage().
	
	* [windows/winproc.c] [windows/class.c] [windows/win.c]
	New scheme for 32-bit window procedures to replace aliases. All
	32-bit window procedure get a 16-bit address pointing to a
	WINDOWPROC structure.
	Implemented Ansi<->Unicode translation for CallWindowProc().
	Added translation of WM_DRAWITEM between Win16 and Win32.

	* [windows/win.c] [include/callback.h]
	Added ugly hack to build CREATESTRUCT on the stack when sending
	WM_NCCREATE.
	Implemented Win32 version of Get/SetWindowWord/Long and
	Get/SetWindowText.
	
Fri May 17 10:20:16 1996  Albrecht Kleine  <kleine@ak.sax.de>

	* [controls/button.c]
	Avoid gray text on gray background in disabled push buttons
	using a b/w raster and some raster operations (PatBlt,BitBlt).

	* [objects/text.c]
	DrawText(): don't draw an underbar anymore if DT_CALCRECT is set.
diff --git a/windows/msgbox.c b/windows/msgbox.c
index d1bbae4..dc33193 100644
--- a/windows/msgbox.c
+++ b/windows/msgbox.c
@@ -31,10 +31,8 @@
   switch(message) {
    case WM_INITDIALOG:
     lpmb = (LPMSGBOX)lParam;
-    if (lpmb->title != NULL) {
-      SetWindowText(hwnd, lpmb->title);
-    }
-    SetWindowText(GetDlgItem(hwnd, 100), lpmb->text);
+    if (lpmb->title) SetWindowText32A(hwnd, lpmb->title);
+    SetWindowText32A(GetDlgItem(hwnd, 100), lpmb->text);
     /* Hide not selected buttons */
     switch(lpmb->type & MB_TYPEMASK) {
      case MB_OK:
@@ -66,21 +64,21 @@
     /* Set the icon */
     switch(lpmb->type & MB_ICONMASK) {
      case MB_ICONEXCLAMATION:
-      SendDlgItemMessage(hwnd, stc1, STM_SETICON, 
-			 (WPARAM)LoadIcon(0, IDI_EXCLAMATION), 0);
+      SendDlgItemMessage16(hwnd, stc1, STM_SETICON, 
+                           (WPARAM)LoadIcon(0, IDI_EXCLAMATION), 0);
       break;
      case MB_ICONQUESTION:
-      SendDlgItemMessage(hwnd, stc1, STM_SETICON, 
-			 (WPARAM)LoadIcon(0, IDI_QUESTION), 0);
+      SendDlgItemMessage16(hwnd, stc1, STM_SETICON, 
+                           (WPARAM)LoadIcon(0, IDI_QUESTION), 0);
       break;
      case MB_ICONASTERISK:
-      SendDlgItemMessage(hwnd, stc1, STM_SETICON, 
-			 (WPARAM)LoadIcon(0, IDI_ASTERISK), 0);
+      SendDlgItemMessage16(hwnd, stc1, STM_SETICON, 
+                           (WPARAM)LoadIcon(0, IDI_ASTERISK), 0);
       break;
      case MB_ICONHAND:
      default:
-      SendDlgItemMessage(hwnd, stc1, STM_SETICON, 
-			 (WPARAM)LoadIcon(0, IDI_HAND), 0);
+      SendDlgItemMessage16(hwnd, stc1, STM_SETICON, 
+                           (WPARAM)LoadIcon(0, IDI_HAND), 0);
       break;
     }
     
@@ -146,7 +144,7 @@
       if (GetWindowLong(hItem, GWL_STYLE) & WS_VISIBLE) {
 	if (buttons++ == ((lpmb->type & MB_DEFMASK) >> 8)) {
 	  SetFocus(hItem);
-	  SendMessage(hItem, BM_SETSTYLE16, BS_DEFPUSHBUTTON, TRUE);
+	  SendMessage32A( hItem, BM_SETSTYLE32, BS_DEFPUSHBUTTON, TRUE );
 	}
 	SetWindowPos(hItem, 0, bpos, tiheight, 0, 0,
 		     SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW);