diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-11 21:06:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-11 21:06:58 +0000 |
commit | 07f097177f76d22f8d3490e9ea439913c73e29a0 (patch) | |
tree | a28d8b0a18d3e68a8dbbaa0531c13231c1b01ba0 /protocols/VKontakte/src/vk_options.cpp | |
parent | fb0c50db69b803edd6664b1bc2e83bc6a02c4835 (diff) |
VK:
- setting nicks for the new chats;
- added an option to hide chat windows on startup
git-svn-id: http://svn.miranda-ng.org/main/trunk@7604 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_options.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_options.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_options.cpp b/protocols/VKontakte/src/vk_options.cpp index 35fc818bd3..60cfb60407 100644 --- a/protocols/VKontakte/src/vk_options.cpp +++ b/protocols/VKontakte/src/vk_options.cpp @@ -34,11 +34,11 @@ INT_PTR CALLBACK VKAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lP SendMessage(hwndDlg, WM_SETICON, ICON_BIG, (LPARAM)Skin_GetIconByHandle(ppro->m_hProtoIcon, true));
SendMessage(hwndDlg, WM_SETICON, ICON_SMALL, (LPARAM)Skin_GetIconByHandle(ppro->m_hProtoIcon));
{
- ptrT tszLogin( ppro->getTStringA("Login"));
+ ptrT tszLogin(ppro->getTStringA("Login"));
if (tszLogin != NULL)
SetDlgItemText(hwndDlg, IDC_LOGIN, tszLogin);
- ptrT tszPassw( ppro->GetUserStoredPassword());
+ ptrT tszPassw(ppro->GetUserStoredPassword());
if (tszPassw != NULL)
SetDlgItemText(hwndDlg, IDC_PASSWORD, tszPassw);
}
@@ -119,6 +119,7 @@ INT_PTR CALLBACK CVkProto::OptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L SetDlgItemText(hwndDlg, IDC_GROUPNAME, ppro->getGroup());
}
CheckDlgButton(hwndDlg, IDC_DELIVERY, ppro->m_bServerDelivery);
+ CheckDlgButton(hwndDlg, IDC_HIDECHATS, ppro->m_bHideChats);
return TRUE;
case WM_COMMAND:
@@ -135,6 +136,7 @@ INT_PTR CALLBACK CVkProto::OptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L break;
case IDC_DELIVERY:
+ case IDC_HIDECHATS:
if (HIWORD(wParam) == BN_CLICKED && (HWND)lParam == GetFocus())
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
@@ -160,6 +162,9 @@ INT_PTR CALLBACK CVkProto::OptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, L ppro->m_bServerDelivery = IsDlgButtonChecked(hwndDlg, IDC_DELIVERY) == BST_CHECKED;
ppro->setByte("ServerDelivery", ppro->m_bServerDelivery);
+
+ ppro->m_bHideChats = IsDlgButtonChecked(hwndDlg, IDC_HIDECHATS) == BST_CHECKED;
+ ppro->setByte("HideChats", ppro->m_bHideChats);
}
break;
|