From 3e7048d2037b42781182c895ef56d5f51b1b5f35 Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Fri, 22 Jun 2012 13:22:39 +0000 Subject: small fixes + cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@528 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/ttbopt.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/TopToolBar/ttbopt.cpp') diff --git a/plugins/TopToolBar/ttbopt.cpp b/plugins/TopToolBar/ttbopt.cpp index c36d78c68d..02e834ffd6 100644 --- a/plugins/TopToolBar/ttbopt.cpp +++ b/plugins/TopToolBar/ttbopt.cpp @@ -82,7 +82,7 @@ int SaveTree(HWND hwndDlg) int count = 0; lockbut(); - Buttons.destroy(); +// Buttons.destroy(); while(tvi.hItem != NULL) { tvi.stateMask = TVIS_STATEIMAGEMASK; @@ -97,7 +97,7 @@ int SaveTree(HWND hwndDlg) btn->dwFlags &= ~TTBBF_VISIBLE; btn->arrangedpos = count; - Buttons.insert(btn); +// Buttons.insert(btn); tvi.hItem = TreeView_GetNextSibling(hTree, tvi.hItem); count++; } @@ -126,7 +126,7 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR SetDlgItemInt(hwndDlg, IDC_BUTTHEIGHT, BUTTHEIGHT, FALSE); SetDlgItemInt(hwndDlg, IDC_BUTTWIDTH, BUTTWIDTH, FALSE); -// SetDlgItemInt(hwndDlg, IDC_BUTTGAP, BUTTGAP, FALSE); + SetDlgItemInt(hwndDlg, IDC_BUTTGAP, BUTTGAP, FALSE); CheckDlgButton(hwndDlg, IDC_USEFLAT, DBGetContactSettingByte(0, TTB_OPTDIR, "UseFlatButton", 1)); BuildTree(hwndDlg); @@ -224,10 +224,10 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR case PSN_APPLY: BUTTHEIGHT = GetDlgItemInt(hwndDlg, IDC_BUTTHEIGHT, NULL, FALSE); BUTTWIDTH = GetDlgItemInt(hwndDlg, IDC_BUTTWIDTH, NULL, FALSE); -// BUTTGAP = GetDlgItemInt(hwndDlg, IDC_BUTTGAP, NULL, FALSE)); + BUTTGAP = GetDlgItemInt(hwndDlg, IDC_BUTTGAP, NULL, FALSE); DBWriteContactSettingByte(0, TTB_OPTDIR, "BUTTHEIGHT", BUTTHEIGHT); DBWriteContactSettingByte(0, TTB_OPTDIR, "BUTTWIDTH", BUTTWIDTH); -// DBWriteContactSettingByte(0, TTB_OPTDIR, "BUTTGAP", BUTTGAP); + DBWriteContactSettingByte(0, TTB_OPTDIR, "BUTTGAP", BUTTGAP); DBWriteContactSettingByte(0, TTB_OPTDIR, "UseFlatButton", (BYTE)IsDlgButtonChecked(hwndDlg, IDC_USEFLAT)); SaveTree(hwndDlg); -- cgit v1.2.3