summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-31 09:08:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-31 09:08:47 +0000
commit20b3aa85fb31018607a888fb232f58b98851ad3b (patch)
tree0a0cd4ad9b35fe33fc3293c367c8d9bdc42d84d8 /plugins/FloatingContacts/src/main.cpp
parent602898ae2746cb2cfc8fcd082313b69130f92902 (diff)
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
Diffstat (limited to 'plugins/FloatingContacts/src/main.cpp')
-rw-r--r--plugins/FloatingContacts/src/main.cpp12
1 files changed, 7 insertions, 5 deletions
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);