diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-08 10:40:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-08 10:40:33 +0000 |
commit | e8c9fd3c802c8c2b9aa47381b1dc54c03c65b595 (patch) | |
tree | b06a843f7fc4ff65d7004e750ef846f06f2a1f33 /plugins/TopToolBar | |
parent | ceb7bbea580d9153668d9113b6cbb24f23e49ebe (diff) |
structure copying replaced with the inheritance
git-svn-id: http://svn.miranda-ng.org/main/trunk@842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar')
-rw-r--r-- | plugins/TopToolBar/toolbar.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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);
|