From 59e4f9335276f10bfa6dd9874bff457405e079ed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Nov 2012 23:26:08 +0000 Subject: more clear exit from TTB git-svn-id: http://svn.miranda-ng.org/main/trunk@2204 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/src/toolbarwnd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/TopToolBar/src/toolbarwnd.cpp') diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp index e3f19f693b..0541975bf3 100644 --- a/plugins/TopToolBar/src/toolbarwnd.cpp +++ b/plugins/TopToolBar/src/toolbarwnd.cpp @@ -127,6 +127,10 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara PostMessage(hwnd, TTB_UPDATEFRAMEVISIBILITY, 1, 0); return FALSE; + case WM_DESTROY: + g_ctrl->hWnd = NULL; + break; + case WM_MOVE: return 0; @@ -247,7 +251,7 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara default: return DefWindowProc(hwnd, msg, wParam, lParam); } - return(TRUE); + return TRUE; } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3