Mercurial > hg > xemacs-beta
comparison src/event-msw.c @ 731:46d76bae9921
[xemacs-hg @ 2002-01-18 18:01:02 by adrian]
[A5R4] [PATCH] r21-4-6-windows: mswindows_wnd_proc to handle WM_SHOWWINDOW (for virtuawin) <7kqjct4h.fsf@mailto.t-online.de>
author | adrian |
---|---|
date | Fri, 18 Jan 2002 18:01:04 +0000 |
parents | a307f9a2021d |
children | 943eaba38521 |
comparison
equal
deleted
inserted
replaced
730:3e321319c5ba | 731:46d76bae9921 |
---|---|
2643 FRAME_ICONIFIED_P (frame) = 0; | 2643 FRAME_ICONIFIED_P (frame) = 0; |
2644 } | 2644 } |
2645 | 2645 |
2646 return DefWindowProc (hwnd, message_, wParam, lParam); | 2646 return DefWindowProc (hwnd, message_, wParam, lParam); |
2647 } | 2647 } |
2648 | |
2649 case WM_SHOWWINDOW: | |
2650 /* | |
2651 The WM_SHOWWINDOW message is sent to a window when the window | |
2652 is about to be hidden or shown. | |
2653 APA: This message is also sent when switching to a virtual | |
2654 desktop under the virtuawin virtual window manager. | |
2655 | |
2656 */ | |
2657 { | |
2658 fobj = mswindows_find_frame (hwnd); | |
2659 frame = XFRAME (fobj); | |
2660 if (wParam == TRUE) | |
2661 { | |
2662 mswindows_enqueue_magic_event (hwnd, XM_MAPFRAME); | |
2663 FRAME_VISIBLE_P (frame) = 1; | |
2664 } | |
2665 else | |
2666 { | |
2667 mswindows_enqueue_magic_event (hwnd, XM_UNMAPFRAME); | |
2668 FRAME_VISIBLE_P (frame) = 0; | |
2669 } | |
2670 } | |
2671 break; | |
2648 | 2672 |
2649 case WM_SIZE: | 2673 case WM_SIZE: |
2650 /* We only care about this message if our size has really changed */ | 2674 /* We only care about this message if our size has really changed */ |
2651 if (wParam==SIZE_RESTORED || wParam==SIZE_MAXIMIZED || wParam==SIZE_MINIMIZED) | 2675 if (wParam==SIZE_RESTORED || wParam==SIZE_MAXIMIZED || wParam==SIZE_MINIMIZED) |
2652 { | 2676 { |