diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-12-03 20:41:14 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-12-03 20:41:14 +0000 |
commit | aed7c184b7afbf0c413ea97de89fea1bbd95c5d5 (patch) | |
tree | 81fa6157da941ccd849f9f74058948e1ded6ae59 | |
parent | a3a041c7b3fbf34faca7c7b037a8947541231293 (diff) |
fixed link to options
git-svn-id: http://svn.miranda-ng.org/main/trunk@2628 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/FavContacts/src/main.cpp | 50 |
1 files changed, 8 insertions, 42 deletions
diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp index b8f72e4301..b9b4aef86d 100644 --- a/plugins/FavContacts/src/main.cpp +++ b/plugins/FavContacts/src/main.cpp @@ -1125,47 +1125,6 @@ static void sttResetListOptions(HWND hwndList) SendMessage(hwndList, CLM_SETTEXTCOLOR, i, GetSysColor(COLOR_WINDOWTEXT));
}
-static void sttActivateOptionsPage(HWND hwnd, TCHAR *aSection, TCHAR *aPage)
-{
- TCHAR buf[256];
- TCHAR *section = TranslateTS(aSection);
-
- HWND hwndTree = FindWindowEx(GetParent(hwnd), NULL, WC_TREEVIEW, NULL);
- for (HTREEITEM htiSection = TreeView_GetRoot(hwndTree); htiSection; htiSection = TreeView_GetNextSibling(hwndTree, htiSection)) {
- TVITEM tvi = {0};
- tvi.mask = TVIF_TEXT;
- tvi.hItem = htiSection;
- tvi.pszText = buf;
- tvi.cchTextMax = SIZEOF(buf);
- TreeView_GetItem(hwndTree, &tvi);
-
- if (!lstrcmp(buf, section)) {
- if (!aPage) {
- TreeView_Select(hwndTree, htiSection, TVGN_CARET);
- return;
- }
- else TreeView_Expand(hwndTree, htiSection, TVE_EXPAND);
-
- TCHAR *page = TranslateTS(aPage);
- for (HTREEITEM htiPage = TreeView_GetChild(hwndTree, htiSection); htiPage; htiPage = TreeView_GetNextSibling(hwndTree, htiPage)) {
- TVITEM tvi = {0};
- tvi.mask = TVIF_TEXT;
- tvi.hItem = htiPage;
- tvi.pszText = buf;
- tvi.cchTextMax = SIZEOF(buf);
- TreeView_GetItem(hwndTree, &tvi);
-
- if (!lstrcmp(buf, page)) {
- TreeView_Select(hwndTree, htiPage, TVGN_CARET);
- return;
- }
- }
-
- break;
- }
- }
-}
-
static INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
static bool bInitialized = false;
@@ -1291,7 +1250,14 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA break;
case IDC_BTN_FONTS:
- sttActivateOptionsPage(hwnd, _T("Customize"), _T("Fonts"));
+ {
+ OPENOPTIONSDIALOG ood = {0};
+ ood.cbSize = sizeof(ood);
+ ood.pszGroup = "Customize";
+ ood.pszPage = "Fonts & Colors";
+ ood.pszTab = NULL;
+ Options_Open(&ood);
+ }
break;
case IDC_TXT_RADIUS:
|