From 418db2636cc5b4e519f281c16a5e0496b80dc8d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 20 Apr 2015 13:54:07 +0000 Subject: minor code fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12974 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clui.cpp') diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp index f4957bd96a..3c4750bb19 100644 --- a/plugins/Clist_modern/src/modern_clui.cpp +++ b/plugins/Clist_modern/src/modern_clui.cpp @@ -273,7 +273,7 @@ HRESULT CLUI::CreateCluiFrames() mii.hSubMenu = (HMENU)CallService(MS_CLIST_MENUGETSTATUS, 0, 0); SetMenuItemInfo(g_hMenuMain, 1, TRUE, &mii); - CreateCLCWindow(CluiWnd()); + CreateCLCWindow(pcli->hwndContactList); CLUI_ChangeWindowMode(); @@ -290,7 +290,7 @@ HRESULT CLUI::CreateCluiFrames() } CLUI::CLUI() : -m_hDwmapiDll(NULL) + m_hDwmapiDll(NULL) { m_pCLUI = this; g_CluiData.bSTATE = STATE_CLUI_LOADING; @@ -373,7 +373,7 @@ HRESULT CLUI::RegisterAvatarMenu() HRESULT CLUI::CreateCLCWindow(const HWND hwndClui) { - ClcWnd() = CreateWindow(_T(CLISTCONTROL_CLASS), _T(""), + pcli->hwndContactTree = CreateWindow(_T(CLISTCONTROL_CLASS), _T(""), WS_CHILD | WS_CLIPCHILDREN | CLS_CONTACTLIST | (db_get_b(NULL, "CList", "UseGroups", SETTING_USEGROUPS_DEFAULT) ? CLS_USEGROUPS : 0) | (db_get_b(NULL, "CList", "HideOffline", SETTING_HIDEOFFLINE_DEFAULT) ? CLS_HIDEOFFLINE : 0) @@ -433,7 +433,7 @@ HRESULT CLUI::FillAlphaChannel(HDC hDC, RECT *prcParent) HRESULT CLUI::CreateCLC() { CLISTFrame Frame = { sizeof(Frame) }; - Frame.hWnd = ClcWnd(); + Frame.hWnd = pcli->hwndContactTree; Frame.align = alClient; Frame.hIcon = LoadSkinnedIcon(SKINICON_OTHER_FRAME); Frame.Flags = F_VISIBLE | F_SHOWTBTIP | F_NO_SUBCONTAINER | F_TCHAR; -- cgit v1.2.3