From: H.G. Muller Date: Mon, 22 Feb 2010 11:02:59 +0000 (+0100) Subject: Group Chat Boxes with console in stead of board window X-Git-Tag: hgm-4.20100223~2 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=980f155cbd6ed8818bbfc4f72d948e0f733f9ee4;p=xboard.git Group Chat Boxes with console in stead of board window They now open and close with the console, which seems more natural, and prevents the console from covering them. --- diff --git a/winboard/wchat.c b/winboard/wchat.c index 4a1b4d3..64cc16a 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -61,7 +61,7 @@ char *NextInHistory(); extern HWND ChatDialog; extern HINSTANCE hInst; -extern HWND hwndMain; +extern HWND hwndConsole; extern WindowPlacement wpChat[MAX_CHAT]; extern WindowPlacement wpConsole; @@ -372,7 +372,7 @@ void ChatPopUp(char *icsHandle) lpProc = MakeProcInstance( (FARPROC) ChatProc, hInst ); /* Note to self: dialog must have the WS_VISIBLE style set, otherwise it's not shown! */ - CreateDialog( hInst, MAKEINTRESOURCE(DLG_Chat), hwndMain, (DLGPROC)lpProc ); + CreateDialog( hInst, MAKEINTRESOURCE(DLG_Chat), hwndConsole, (DLGPROC)lpProc ); FreeProcInstance(lpProc);