From 75a05d33bac8167aef83c37cd00ab094af2e2556 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 26 Mar 2010 18:32:36 +0100 Subject: [PATCH] Let Chat Boxes pop up above console, rather than on top of it Use EnsureOnScreen() to have them overlap if there was no room. --- winboard/wchat.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/winboard/wchat.c b/winboard/wchat.c index a387466..30b6aa5 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -180,7 +180,7 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam { static SnapData sd; char buf[MSG_SIZ], mess[MSG_SIZ]; - int partner = -1, i; + int partner = -1, i, x, y; static BOOL filterHasFocus[MAX_CHAT]; WORD wMask; HWND hMemo; @@ -195,7 +195,7 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam sprintf(buf, "Chat Window %s", first.tidy); SetWindowText(hDlg, buf); } - for(i=0; ipartner), chatPartner[i]); } else EnableWindow( GetDlgItem(hDlg, IDC_Focus1+i-(i>partner)), 0 ); for(i=0; i