From 798a7bc2ee5f488d67831c11778f209bdadcba02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Jun 2012 18:03:23 +0000 Subject: patch for the core Mbutton class customization, to use the themes defined by plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@514 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_nicer/SRC/clcopts.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'plugins/Clist_nicer/SRC/clcopts.cpp') diff --git a/plugins/Clist_nicer/SRC/clcopts.cpp b/plugins/Clist_nicer/SRC/clcopts.cpp index d32068818e..60af19554b 100644 --- a/plugins/Clist_nicer/SRC/clcopts.cpp +++ b/plugins/Clist_nicer/SRC/clcopts.cpp @@ -1056,26 +1056,22 @@ static INT_PTR CALLBACK DlgProcDspProfiles(HWND hwnd, UINT msg, WPARAM wParam, L hwndList = GetDlgItem(hwnd, IDC_PROFILELIST); HWND hwndBtn = GetDlgItem(hwnd, IDC_DSP_ADD); - SendMessage(hwndBtn, BUTTONSETASFLATBTN, FALSE, 0); - SendMessage(hwndBtn, BUTTONSETASTHEMEDBTN, TRUE, 0); + CustomizeButton(hwndBtn, false,true, false); SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ADDCONTACT), IMAGE_ICON, 16, 16, LR_SHARED)); SetWindowText(hwndBtn, TranslateT("Add New...")); hwndBtn = GetDlgItem(hwnd, IDC_DSP_DELETE); - SendMessage(hwndBtn, BUTTONSETASFLATBTN, FALSE, 0); - SendMessage(hwndBtn, BUTTONSETASTHEMEDBTN, TRUE, 0); + CustomizeButton(hwndBtn, false,true, false); SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_DELETE), IMAGE_ICON, 16, 16, LR_SHARED)); SetWindowText(hwndBtn, TranslateT("Delete")); hwndBtn = GetDlgItem(hwnd, IDC_DSP_RENAME); - SendMessage(hwndBtn, BUTTONSETASFLATBTN, FALSE, 0); - SendMessage(hwndBtn, BUTTONSETASTHEMEDBTN, TRUE, 0); + CustomizeButton(hwndBtn, false,true, false); SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_RENAME), IMAGE_ICON, 16, 16, LR_SHARED)); SetWindowText(hwndBtn, TranslateT("Rename...")); hwndBtn = GetDlgItem(hwnd, IDC_DSP_APPLY); - SendMessage(hwndBtn, BUTTONSETASFLATBTN, FALSE, 0); - SendMessage(hwndBtn, BUTTONSETASTHEMEDBTN, TRUE, 0); + CustomizeButton(hwndBtn, false,true, false); SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_OPTIONS), IMAGE_ICON, 16, 16, LR_SHARED)); SetWindowText(hwndBtn, TranslateT("Apply this profile")); -- cgit v1.2.3