From 97da56e182c28cfa9b9886985ad1a2aff8fe9727 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Jul 2015 20:48:30 +0000 Subject: useless resource removed git-svn-id: http://svn.miranda-ng.org/main/trunk@14478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/res/resource.rc | 5 ----- src/mir_app/src/clui.cpp | 11 ++--------- src/mir_app/src/resource.h | 1 - 3 files changed, 2 insertions(+), 15 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/res/resource.rc b/src/mir_app/res/resource.rc index ef4583b099..427d481534 100644 --- a/src/mir_app/res/resource.rc +++ b/src/mir_app/res/resource.rc @@ -1230,11 +1230,6 @@ IDC_DROPUSER CURSOR "cursor_drop_user.cur" // Menu // -IDR_CLISTMENU MENU -BEGIN - MENUITEM SEPARATOR -END - IDR_CONTEXT MENU BEGIN POPUP "Tray" diff --git a/src/mir_app/src/clui.cpp b/src/mir_app/src/clui.cpp index ba7e7b152e..98920e6dae 100644 --- a/src/mir_app/src/clui.cpp +++ b/src/mir_app/src/clui.cpp @@ -251,30 +251,23 @@ int LoadCLUIModule(void) hContactDroppedEvent = CreateHookableEvent(ME_CLUI_CONTACTDROPPED); hContactDragStopEvent = CreateHookableEvent(ME_CLUI_CONTACTDRAGSTOP); - WNDCLASSEX wndclass; + WNDCLASSEX wndclass = { 0 }; wndclass.cbSize = sizeof(wndclass); wndclass.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_GLOBALCLASS; wndclass.lpfnWndProc = cli.pfnContactListControlWndProc; - wndclass.cbClsExtra = 0; wndclass.cbWndExtra = sizeof(void *); wndclass.hInstance = cli.hInst; - wndclass.hIcon = NULL; wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); - wndclass.hbrBackground = NULL; - wndclass.lpszMenuName = NULL; wndclass.lpszClassName = _T(CLISTCONTROL_CLASS); - wndclass.hIconSm = NULL; RegisterClassEx(&wndclass); + memset(&wndclass, 0, sizeof(wndclass)); wndclass.style = CS_HREDRAW | CS_VREDRAW | ((db_get_b(NULL, "CList", "WindowShadow", 0) == 1) ? CS_DROPSHADOW : 0); wndclass.lpfnWndProc = ContactListWndProc; - wndclass.cbClsExtra = 0; - wndclass.cbWndExtra = 0; wndclass.hInstance = cli.hInst; wndclass.hIcon = Skin_LoadIcon(SKINICON_OTHER_MIRANDA, true); wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); wndclass.hbrBackground = (HBRUSH) (COLOR_3DFACE + 1); - wndclass.lpszMenuName = MAKEINTRESOURCE(IDR_CLISTMENU); wndclass.lpszClassName = _T(MIRANDACLASS); wndclass.hIconSm = Skin_LoadIcon(SKINICON_OTHER_MIRANDA); RegisterClassEx(&wndclass); diff --git a/src/mir_app/src/resource.h b/src/mir_app/src/resource.h index 00027b4c75..18aa499f39 100644 --- a/src/mir_app/src/resource.h +++ b/src/mir_app/src/resource.h @@ -81,7 +81,6 @@ #define IDD_COLORCHOOSER 195 #define IDD_PROFILEMANAGER 197 #define IDI_MAINMENU 198 -#define IDR_CLISTMENU 199 #define IDI_BLANK 200 #define IDD_FINDADD 201 #define IDI_USERONLINE 201 -- cgit v1.2.3