From 184333c059da77946b1db5d42ef8fbcadaaf41c1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 18 Nov 1996 21:12:50 +0000 Subject: [PATCH] Change call to `PostMessage' to use `SendMessage' to eliminate race condition when adjusting font and size of window together, as does my .edwin file. --- v7/src/microcode/ntscreen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v7/src/microcode/ntscreen.c b/v7/src/microcode/ntscreen.c index 8eb358219..f5bcc68b4 100644 --- a/v7/src/microcode/ntscreen.c +++ b/v7/src/microcode/ntscreen.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ntscreen.c,v 1.26 1996/10/09 15:41:36 cph Exp $ +$Id: ntscreen.c,v 1.27 1996/11/18 21:12:50 cph Exp $ Copyright (c) 1993-96 Massachusetts Institute of Technology @@ -1121,7 +1121,7 @@ ResetScreen (SCREEN screen) if (AdjustedSize (screen, &width, &height)) MoveWindow (hWnd, rcWindow.left, rcWindow.top, width, height, TRUE); else - PostMessage (hWnd, WM_SIZE, SIZENORMAL, + SendMessage (hWnd, WM_SIZE, SIZENORMAL, ((LPARAM) (MAKELONG (width,height)))); } return TRUE; @@ -1348,7 +1348,7 @@ SizeScreen (HWND hWnd, WORD wVertSize, WORD wHorzSize ) Since we protect this procedure against minimizing in the WndProc, we can get here only when window is launched in a minimized state. We - get here because of the PostMessage in ScreenReset. Our duty is to + get here because of the SendMessage in ScreenReset. Our duty is to fake a normal position and size. Luckily none of the scrolling businness happens because all the cursor etc are at zero. (Hopefully it would be clipped). -- 2.25.1