From 980f155cbd6ed8818bbfc4f72d948e0f733f9ee4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 22 Feb 2010 12:02:59 +0100 Subject: [PATCH] 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. --- winboard/wchat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.0.4