summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-06 20:00:41 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-06 20:00:41 +0000
commit25c14757fb063259a890bc8fc9702db6ff207ce7 (patch)
tree2687059bde7a52dc12be3fd7441dcf54f7fe03f4 /plugins/Clist_modern
parent2f4e2131e95bfceb0608a30cecd348cbae211834 (diff)
Clist_modern: full skin reloading
git-svn-id: http://svn.miranda-ng.org/main/trunk@16041 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_skinopt.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_skinopt.cpp b/plugins/Clist_modern/src/modern_skinopt.cpp
index 4b9fedd6c0..9977a7e503 100644
--- a/plugins/Clist_modern/src/modern_skinopt.cpp
+++ b/plugins/Clist_modern/src/modern_skinopt.cpp
@@ -500,7 +500,15 @@ INT_PTR SvcApplySkin(WPARAM, LPARAM lParam)
RECT rc = { 0 };
GetWindowRect(hwnd, &rc);
Sync(CLUIFrames_OnMoving, hwnd, &rc);
-
+
+ g_mutex_bChangingMode = TRUE;
+ CLUI_UpdateLayeredMode();
+ CLUI_ChangeWindowMode();
+ SendMessage(pcli->hwndContactTree, WM_SIZE, 0, 0); //forces it to send a cln_listsizechanged
+ CLUI_ReloadCLUIOptions();
+ cliShowHide(0, 1);
+ g_mutex_bChangingMode = FALSE;
+
if (g_hCLUIOptionsWnd) {
SendDlgItemMessage(g_hCLUIOptionsWnd, IDC_LEFTMARGINSPIN, UDM_SETPOS, 0, db_get_b(NULL, "CLUI", "LeftClientMargin", SETTING_LEFTCLIENTMARIGN_DEFAULT));
SendDlgItemMessage(g_hCLUIOptionsWnd, IDC_RIGHTMARGINSPIN, UDM_SETPOS, 0, db_get_b(NULL, "CLUI", "RightClientMargin", SETTING_RIGHTCLIENTMARIGN_DEFAULT));