diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-21 18:03:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-21 18:03:23 +0000 |
commit | 798a7bc2ee5f488d67831c11778f209bdadcba02 (patch) | |
tree | 7110885daa35701e74363b03064534fd70f317af /plugins/Clist_nicer/SRC/clcopts.cpp | |
parent | b6eeba0ad88a0eef9218e95cd07ef3cd867ff431 (diff) |
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
Diffstat (limited to 'plugins/Clist_nicer/SRC/clcopts.cpp')
-rw-r--r-- | plugins/Clist_nicer/SRC/clcopts.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
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"));
|