From 9e46759e7968e312841f7050a42f64808b4c0d22 Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Mon, 8 Dec 2014 19:32:16 +0000 Subject: Awkward's private repo sync git-svn-id: http://svn.miranda-ng.org/main/trunk@11279 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Actman30/iac_settings.pas | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'plugins/Actman30/iac_settings.pas') diff --git a/plugins/Actman30/iac_settings.pas b/plugins/Actman30/iac_settings.pas index 0cd7d82507..3997fbe73d 100644 --- a/plugins/Actman30/iac_settings.pas +++ b/plugins/Actman30/iac_settings.pas @@ -34,6 +34,7 @@ begin SetDlgItemTextW(Dialog,IDC_EDIT_FORMAT,''); CheckDlgButton(Dialog,IDC_FR_FLAG,BST_UNCHECKED); + CheckDlgButton(Dialog,IDC_VL_FLAG,BST_UNCHECKED); end; function DlgProc(Dialog:HWND;hMessage:uint;wParam:WPARAM;lParam:LPARAM):LRESULT; stdcall; @@ -79,7 +80,13 @@ begin stat:=BST_CHECKED else stat:=BST_UNCHECKED; - CheckDlgButton(Dialog,IDC_FR_FLAG,stat); + CheckDlgButton(Dialog,IDC_FR_FLAG,stat); + + if (lp and ACF_VOLATILE)<>0 then + stat:=BST_CHECKED + else + stat:=BST_UNCHECKED; + CheckDlgButton(Dialog,IDC_VL_FLAG,stat); end; end; @@ -112,6 +119,17 @@ begin SendMessage(GetParent(GetParent(Dialog)),PSM_CHANGED,0,0); end; + + IDC_VL_FLAG: begin + lp:=LV_GetLParam(MacroListWindow); + if IsDlgButtonChecked(Dialog,IDC_VL_FLAG)=BST_UNCHECKED then + lp:=lp and not ACF_VOLATILE + else + lp:=lp or ACF_VOLATILE; + LV_SetLParam(MacroListWindow,lp); + + SendMessage(GetParent(GetParent(Dialog)),PSM_CHANGED,0,0); + end; end; end; end; -- cgit v1.2.3