summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_dialogs.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2024-05-26 21:36:45 +0500
committerElzorFox <elzorfox@ya.ru>2024-05-26 21:36:45 +0500
commitc369a5d36d8baf079e5579ceb4178f5d1073ba52 (patch)
treedade7f0843f75499012f07d29544f58402d9241c /protocols/VKontakte/src/vk_dialogs.cpp
parent6581682c388a6571d2bc8ffc15f493db16062a28 (diff)
VKontakte:
delete unsupported search by email function set max chat title to 100 update VK API version to 5.236 version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_dialogs.cpp')
-rw-r--r--protocols/VKontakte/src/vk_dialogs.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_dialogs.cpp b/protocols/VKontakte/src/vk_dialogs.cpp
index 1d954dc1ee..67396e702e 100644
--- a/protocols/VKontakte/src/vk_dialogs.cpp
+++ b/protocols/VKontakte/src/vk_dialogs.cpp
@@ -175,13 +175,14 @@ CVkUserListForm::CVkUserListForm(CVkProto* proto) :
m_stListCaption(this, IDC_STATIC_MARKCONTAKTS),
m_stMessageCaption(this, IDC_STATIC_MESSAGE),
lContacts(20, NumericKeySortT),
- uClcFilterFlag(0)
+ uClcFilterFlag(0),
+ uMaxLengthMessage(0)
{
m_clc.OnNewContact = m_clc.OnListRebuilt = Callback(this, &CVkUserListForm::FilterList);
}
-CVkUserListForm::CVkUserListForm(CVkProto* proto, CMStringW _wszMessage, CMStringW _wszFormCaption, CMStringW _wszListCaption, CMStringW _wszMessageCaption, uint8_t _uClcFilterFlag) :
+CVkUserListForm::CVkUserListForm(CVkProto* proto, CMStringW _wszMessage, CMStringW _wszFormCaption, CMStringW _wszListCaption, CMStringW _wszMessageCaption, uint8_t _uClcFilterFlag, UINT _uMaxLengthMessage) :
CVkDlgBase(proto, IDD_VKUSERFORM),
m_clc(this, IDC_CONTACTLIST),
m_edtMessage(this, IDC_MESSAGE),
@@ -192,7 +193,8 @@ CVkUserListForm::CVkUserListForm(CVkProto* proto, CMStringW _wszMessage, CMStrin
wszListCaption(_wszListCaption),
wszMessageCaption(_wszMessageCaption),
lContacts(5, PtrKeySortT),
- uClcFilterFlag(_uClcFilterFlag)
+ uClcFilterFlag(_uClcFilterFlag),
+ uMaxLengthMessage(_uMaxLengthMessage)
{
m_clc.OnNewContact = m_clc.OnListRebuilt = Callback(this, &CVkUserListForm::FilterList);
}
@@ -207,6 +209,8 @@ bool CVkUserListForm::OnInitDialog()
m_stListCaption.SetText(wszListCaption.c_str());
m_stMessageCaption.SetText(wszMessageCaption.c_str());
+ if (uMaxLengthMessage)
+ m_edtMessage.SetMaxLength(uMaxLengthMessage);
m_edtMessage.SetText(wszMessage.c_str());
SetCaption(wszFormCaption.c_str());