diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-10-21 19:55:03 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-10-21 19:55:03 +0000 |
commit | 97cecdb4b713e71f2118779f2c2ae78c978f6fc0 (patch) | |
tree | bcff1d6173455189e70947148e30804fc2b604ec /plugins/Clist_modern | |
parent | b004c67cff61e0fa772cc06b3bed515b5e05d68d (diff) |
clist_modern: hook at "OnTop" setting changing
git-svn-id: http://svn.miranda-ng.org/main/trunk@15588 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 5a1fd0361e..1f2aa2393c 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -132,6 +132,10 @@ static int clcHookSettingChanged(WPARAM hContact, LPARAM lParam) pcli->pfnClcBroadcast(INTM_GROUPSCHANGED, hContact, lParam); else if (!mir_strcmp(cws->szSetting, "XStatusId") || !mir_strcmp(cws->szSetting, "XStatusName")) cliCluiProtocolStatusChanged(0, cws->szModule); + else if (!mir_strcmp(cws->szModule, "CList")) { + if (!mir_strcmp(cws->szSetting, "OnTop"))
+ SetWindowPos(pcli->hwndContactList, cws->value.bVal ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+ }
} else { if (!mir_strcmp(cws->szSetting, "TickTS")) @@ -143,7 +147,6 @@ static int clcHookSettingChanged(WPARAM hContact, LPARAM lParam) else if (!mir_strcmp(cws->szModule, "CList")) { if (!mir_strcmp(cws->szSetting, "StatusMsg")) pcli->pfnClcBroadcast(INTM_STATUSMSGCHANGED, hContact, 0); - } else if (!mir_strcmp(cws->szModule, "ContactPhoto")) { if (!mir_strcmp(cws->szSetting, "File")) |