summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2016-12-05 10:36:52 +0500
committerElzorFox <elzorfox@ya.ru>2016-12-05 10:36:52 +0500
commitdd2811d596b99ffd3b8c0a2de3acca183eb4cfd0 (patch)
tree0f09f06cf0e1555dd7303dc0ed92efe8b6ab2097
parent6002785ecb577a0d2495861a94aaa6a9044c3fe6 (diff)
VKontakte: use CCtrlSpin for spin controls
-rw-r--r--protocols/VKontakte/src/vk_options.cpp14
-rw-r--r--protocols/VKontakte/src/vk_options.h6
2 files changed, 10 insertions, 10 deletions
diff --git a/protocols/VKontakte/src/vk_options.cpp b/protocols/VKontakte/src/vk_options.cpp
index bb9ceb7bab..4b58f39c86 100644
--- a/protocols/VKontakte/src/vk_options.cpp
+++ b/protocols/VKontakte/src/vk_options.cpp
@@ -270,8 +270,8 @@ void CVkOptionAdvancedForm::OnInitDialog()
m_cbSendMetodBroadcast.SetState(m_proto->m_vkOptions.iMusicSendMetod == MusicSendMetod::sendBroadcastOnly);
m_cbMusicSendStatus.SetState(m_proto->m_vkOptions.iMusicSendMetod == MusicSendMetod::sendStatusOnly);
- m_spInvInterval.SendMsg(UDM_SETRANGE, 0, MAKELONG(15, 0));
- m_spInvInterval.SendMsg(UDM_SETPOS, 0, m_proto->m_vkOptions.iInvisibleInterval);
+ m_spInvInterval.SetRange(15);
+ m_spInvInterval.SetPosition(m_proto->m_vkOptions.iInvisibleInterval);
On_cbForceInvisibleStatusChange(&m_cbForceInvisibleStatus);
On_cbSendVKLinksAsAttachmentsChange(&m_cbSendVKLinksAsAttachments);
@@ -366,12 +366,12 @@ CVkOptionFeedsForm::CVkOptionFeedsForm(CVkProto *proto):
void CVkOptionFeedsForm::OnInitDialog()
{
- m_spNewsInterval.SendMsg(UDM_SETRANGE, 0, MAKELONG(60 * 24, 1));
- m_spNewsInterval.SendMsg(UDM_SETPOS, 0, m_proto->m_vkOptions.iNewsInterval);
-
- m_spNotificationsInterval.SendMsg(UDM_SETRANGE, 0, MAKELONG(60 * 24, 1));
- m_spNotificationsInterval.SendMsg(UDM_SETPOS, 0, m_proto->m_vkOptions.iNotificationsInterval);
+ m_spNewsInterval.SetRange(60 * 24, 1);
+ m_spNewsInterval.SetPosition(m_proto->m_vkOptions.iNewsInterval);
+ m_spNotificationsInterval.SetRange(60 * 24, 1);
+ m_spNotificationsInterval.SetPosition(m_proto->m_vkOptions.iNotificationsInterval);
+
On_cbNewsEnabledChange(&m_cbNewsEnabled);
On_cbNotificationsEnabledChange(&m_cbNotificationsEnabled);
}
diff --git a/protocols/VKontakte/src/vk_options.h b/protocols/VKontakte/src/vk_options.h
index e4d05ac1a4..99da716f0d 100644
--- a/protocols/VKontakte/src/vk_options.h
+++ b/protocols/VKontakte/src/vk_options.h
@@ -74,7 +74,7 @@ class CVkOptionAdvancedForm : public CVkDlgBase
CCtrlCheck m_cbForceInvisibleStatus;
CCtrlEdit m_edtInvInterval;
- CCtrlButton m_spInvInterval;
+ CCtrlSpin m_spInvInterval;
CCtrlCheck m_cbUseNonStandardUrlEncode;
CCtrlCheck m_cbSendVKLinksAsAttachments;
@@ -107,12 +107,12 @@ class CVkOptionFeedsForm : public CVkDlgBase
CCtrlCheck m_cbNewsEnabled;
CCtrlEdit m_edtNewsInterval;
- CCtrlButton m_spNewsInterval;
+ CCtrlSpin m_spNewsInterval;
CCtrlCheck m_cbNotificationsEnabled;
CCtrlEdit m_edtNotificationsInterval;
- CCtrlButton m_spNotificationsInterval;
+ CCtrlSpin m_spNotificationsInterval;
CCtrlCheck m_cbNotificationsMarkAsViewed;
CCtrlCheck m_cbSpecialContactAlwaysEnabled;