From 563aac340768af4f96fd74a3246098cc3bdf47e0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Feb 2019 13:39:25 +0300 Subject: fixes #1825 (spin control initialization should be done in the constructor, not inside OnInitDialog) --- protocols/Steam/src/steam_options.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_options.cpp b/protocols/Steam/src/steam_options.cpp index 9f2e996286..3c0197d400 100644 --- a/protocols/Steam/src/steam_options.cpp +++ b/protocols/Steam/src/steam_options.cpp @@ -1,10 +1,13 @@ #include "stdafx.h" -CSteamOptionsMain::CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent) - : CSteamDlgBase(proto, idDialog), - m_username(this, IDC_USERNAME), m_password(this, IDC_PASSWORD), - m_group(this, IDC_GROUP), m_biggerAvatars(this, IDC_BIGGER_AVATARS), - m_showChatEvents(this, IDC_SHOW_CHAT_EVENTS), m_pollingErrorLimit(this, IDC_POLLINGERRORLIMITSPIN) +CSteamOptionsMain::CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent) : + CSteamDlgBase(proto, idDialog), + m_username(this, IDC_USERNAME), + m_password(this, IDC_PASSWORD), + m_group(this, IDC_GROUP), + m_biggerAvatars(this, IDC_BIGGER_AVATARS), + m_showChatEvents(this, IDC_SHOW_CHAT_EVENTS), + m_pollingErrorLimit(this, IDC_POLLINGERRORLIMITSPIN, 255) { SetParent(hwndParent); @@ -26,8 +29,6 @@ bool CSteamOptionsMain::OnInitDialog() SendMessage(m_username.GetHwnd(), EM_LIMITTEXT, 64, 0); SendMessage(m_password.GetHwnd(), EM_LIMITTEXT, 64, 0); SendMessage(m_group.GetHwnd(), EM_LIMITTEXT, 64, 0); - - m_pollingErrorLimit.SetRange(255, 0); return true; } -- cgit v1.2.3