From 20b3aa85fb31018607a888fb232f58b98851ad3b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 May 2015 09:08:47 +0000 Subject: fixes #930 (New message in conference does not update view of floating contact) git-svn-id: http://svn.miranda-ng.org/main/trunk@13929 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FloatingContacts/src/main.cpp | 12 +++++++----- plugins/FloatingContacts/src/version.h | 10 +++++----- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'plugins/FloatingContacts') diff --git a/plugins/FloatingContacts/src/main.cpp b/plugins/FloatingContacts/src/main.cpp index 8a93846941..f0e6295ad7 100644 --- a/plugins/FloatingContacts/src/main.cpp +++ b/plugins/FloatingContacts/src/main.cpp @@ -121,8 +121,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) ///////////////////////////////////////////////////////////////////////////// // Fonts - -static LPCTSTR s_fonts[FLT_FONTIDS] = + +static LPCTSTR s_fonts[FLT_FONTIDS] = { { LPGENT("Standard contacts") }, { LPGENT("Online contacts to whom you have a different visibility") }, @@ -243,6 +243,8 @@ static int OnContactSettingChanged(WPARAM hContact, LPARAM lParam) // Only on these 2 events we need to refresh if (0 == _stricmp(pdbcws->szSetting, "Status")) idStatus = pdbcws->value.wVal; + else if (0 == _stricmp(pdbcws->szSetting, "ApparentMode")) + idStatus = GetContactStatus(hContact); else if (0 == _stricmp(pdbcws->szSetting, "Nick")) idStatus = GetContactStatus(hContact); else if (0 == _stricmp(pdbcws->szSetting, "MyHandle")) @@ -536,7 +538,7 @@ static void CreateThumbsFont() hFont[nFontId] = CreateFontIndirect(&lf); } } - + static void CreateBackgroundBrush() { bkColor = db_get_dw(NULL, MODULE, "BkColor", FLT_DEFAULT_BKGNDCOLOR); @@ -568,7 +570,7 @@ static void CreateBackgroundBrush() cr = (COLORREF)db_get_dw(NULL, MODULE, "RBEdgesColor", FLT_DEFAULT_RBEDGESCOLOR); hRBEdgesPen = CreatePen(PS_SOLID, 1, cr); } - + if (db_get_b(NULL, MODULE, "BkUseBitmap", FLT_DEFAULT_BKGNDUSEBITMAP)) { DBVARIANT dbv; if ( !db_get_ts(NULL, MODULE, "BkBitmap", &dbv)) { @@ -874,7 +876,7 @@ static int OnModulesLoded(WPARAM wParam, LPARAM lParam) HookEvent(ME_OPT_INITIALISE, OnOptionsInitialize); HookEvent(ME_CLIST_STATUSMODECHANGE, OnStatusModeChange); HookEvent(ME_CLIST_PREBUILDCONTACTMENU, OnPrebuildContactMenu); - + hwndMiranda = (HWND)CallService(MS_CLUI_GETHWND, 0, 0); mir_subclassWindow(hwndMiranda, newMirandaWndProc); diff --git a/plugins/FloatingContacts/src/version.h b/plugins/FloatingContacts/src/version.h index f414e29000..0ca55e9670 100644 --- a/plugins/FloatingContacts/src/version.h +++ b/plugins/FloatingContacts/src/version.h @@ -1,7 +1,7 @@ -#define __MAJOR_VERSION 0 -#define __MINOR_VERSION 7 +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 7 #define __RELEASE_NUM 0 -#define __BUILD_NUM 1 +#define __BUILD_NUM 2 #include @@ -10,5 +10,5 @@ #define __DESCRIPTION "Floating Contacts plugin for Miranda." #define __AUTHOR "Iavor Vajarov, Kosh&chka, Victor Pavlychko" #define __AUTHOREMAIL "ell-6@ya.ru" -#define __AUTHORWEB "http://miranda-ng.org/p/FloatingContacts/" -#define __COPYRIGHT "© 2002-2004 I. Vajarov (ivajarov@code.bg)6 2008 Kosh&chka, V. Pavlychko" +#define __AUTHORWEB "http://miranda-ng.org/p/FloatingContacts/" +#define __COPYRIGHT "© 2002-2004 I. Vajarov (ivajarov@code.bg)6 2008 Kosh&chka, V. Pavlychko" -- cgit v1.2.3