From: H.G. Muller Date: Fri, 26 Mar 2010 17:32:36 +0000 (+0100) Subject: Let Chat Boxes pop up above console, rather than on top of it X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=75a05d33bac8167aef83c37cd00ab094af2e2556;p=xboard.git Let Chat Boxes pop up above console, rather than on top of it Use EnsureOnScreen() to have them overlap if there was no room. --- 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