From 74c6f0bfb6476b2ba21f90d9e5d34130b26825ef Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 21 Feb 2010 23:09:24 +0100 Subject: [PATCH] Put newly opened Chat Box on top Dialogs always pop up in front, so set the onTop variable that prevents highighting the button to navigate to it from other Chat Boxes to reflect that a newly opened Chat Box is in view. --- winboard/wchat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/winboard/wchat.c b/winboard/wchat.c index ac75819..4a1b4d3 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -207,6 +207,7 @@ LRESULT CALLBACK ChatProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam SendMessage( GetDlgItem(hDlg, IDC_ChatPartner), // [HGM] clickbox: initialize with requested handle WM_SETTEXT, 0, (LPARAM) chatPartner[partner] ); filterHasFocus[partner] = TRUE; + onTop = partner; // a newly opened box becomes top one if(chatPartner[partner][0]) { filterHasFocus[partner] = FALSE; SetFocus( GetDlgItem(hDlg, OPT_ChatInput) ); -- 1.7.0.4