]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_wnd_proc): Handle WM_GETMINMAXINFO message.
authorGeoff Voelker <voelker@cs.washington.edu>
Sun, 14 Mar 1999 05:21:29 +0000 (05:21 +0000)
committerGeoff Voelker <voelker@cs.washington.edu>
Sun, 14 Mar 1999 05:21:29 +0000 (05:21 +0000)
src/w32fns.c

index f2086b587c9395c2a687b65f8d8aa97cdf034ebf..04fada87196ad6e04caf255508d39a2f18328e76 100644 (file)
@@ -4429,6 +4429,12 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
       
       goto dflt;
 
+    case WM_GETMINMAXINFO:
+      /* Hack to correct bug that allows Emacs frames to be resized
+        below the Minimum Tracking Size.  */
+      ((LPMINMAXINFO) lParam)->ptMinTrackSize.y++;
+      return 0;
+
     case WM_EMACS_CREATESCROLLBAR:
       return (LRESULT) w32_createscrollbar ((struct frame *) wParam,
                                            (struct scroll_bar *) lParam);