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.
SendMessage( GetDlgItem(hDlg, IDC_ChatPartner), // [HGM] clickbox: initialize with requested handle\r
WM_SETTEXT, 0, (LPARAM) chatPartner[partner] );\r
filterHasFocus[partner] = TRUE;\r
+ onTop = partner; // a newly opened box becomes top one\r
if(chatPartner[partner][0]) {\r
filterHasFocus[partner] = FALSE;\r
SetFocus( GetDlgItem(hDlg, OPT_ChatInput) );\r