From e8c9fd3c802c8c2b9aa47381b1dc54c03c65b595 Mon Sep 17 00:00:00 2001 From: George Hazan <george.hazan@gmail.com> Date: Sun, 8 Jul 2012 10:40:33 +0000 Subject: structure copying replaced with the inheritance git-svn-id: http://svn.miranda-ng.org/main/trunk@842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/toolbar.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/TopToolBar') diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp index 7dc3535efb..70019d75b9 100644 --- a/plugins/TopToolBar/toolbar.cpp +++ b/plugins/TopToolBar/toolbar.cpp @@ -727,16 +727,12 @@ static TCHAR pluginname[] = _T("TopToolBar"); int addTopToolBarWindow(HWND parent) { - WNDCLASS wndclass; - wndclass.style = 0; + WNDCLASS wndclass = { 0 }; wndclass.lpfnWndProc = TopToolBarProc; - wndclass.cbClsExtra = 0; - wndclass.cbWndExtra = 0; + wndclass.cbWndExtra = sizeof(void*); wndclass.hInstance = hInst; - wndclass.hIcon = NULL; wndclass.hCursor = LoadCursor (NULL, IDC_ARROW); wndclass.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);//NULL;//(HBRUSH)(COLOR_3DFACE+1); - wndclass.lpszMenuName = NULL; wndclass.lpszClassName = pluginname; RegisterClass(&wndclass); -- cgit v1.2.3