diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-02 20:48:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-02 20:48:30 +0000 |
commit | 97da56e182c28cfa9b9886985ad1a2aff8fe9727 (patch) | |
tree | ed0efe2daf1f3bf8192f492a2b4411d617d94820 /src/mir_app | |
parent | cdd0b356b00028e3146e58bb7412af159587bf66 (diff) |
useless resource removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/res/resource.rc | 5 | ||||
-rw-r--r-- | src/mir_app/src/clui.cpp | 11 | ||||
-rw-r--r-- | src/mir_app/src/resource.h | 1 |
3 files changed, 2 insertions, 15 deletions
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
|