diff options
author | ElzorFox <elzorfox@ya.ru> | 2016-12-05 10:36:52 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2016-12-05 10:36:52 +0500 |
commit | dd2811d596b99ffd3b8c0a2de3acca183eb4cfd0 (patch) | |
tree | 0f09f06cf0e1555dd7303dc0ed92efe8b6ab2097 /protocols/VKontakte/src/vk_options.cpp | |
parent | 6002785ecb577a0d2495861a94aaa6a9044c3fe6 (diff) |
VKontakte: use CCtrlSpin for spin controls
Diffstat (limited to 'protocols/VKontakte/src/vk_options.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_options.cpp | 14 |
1 files changed, 7 insertions, 7 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);
}
|