summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_dialogs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-13 15:05:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-13 15:05:51 +0000
commit6d0076208df04f1d161220beb7cd9155330dead9 (patch)
tree234a9fb900eef695da2948e7de9d19190853b6d3 /protocols/Steam/src/steam_dialogs.cpp
parent05cd31c1d99a2adb8bae18b220a728ef66567543 (diff)
dialog fix for Steam
git-svn-id: http://svn.miranda-ng.org/main/trunk@12787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_dialogs.cpp')
-rw-r--r--protocols/Steam/src/steam_dialogs.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_dialogs.cpp b/protocols/Steam/src/steam_dialogs.cpp
index 877a826294..13df916cf0 100644
--- a/protocols/Steam/src/steam_dialogs.cpp
+++ b/protocols/Steam/src/steam_dialogs.cpp
@@ -1,7 +1,7 @@
#include "common.h"
CSteamPasswordEditor::CSteamPasswordEditor(CSteamProto *proto) :
- CSuper(proto, IDD_PASSWORD_EDITOR, NULL, false), m_ok(this, IDOK),
+ CSuper(proto, IDD_PASSWORD_EDITOR, false), m_ok(this, IDOK),
m_password(this, IDC_PASSWORD), m_savePermanently(this, IDC_SAVEPERMANENTLY)
{
m_ok.OnClick = Callback(this, &CSteamPasswordEditor::OnOk);
@@ -38,7 +38,7 @@ void CSteamPasswordEditor::OnClose()
/////////////////////////////////////////////////////////////////////////////////
CSteamGuardDialog::CSteamGuardDialog(CSteamProto *proto, char *domain) :
- CSuper(proto, IDD_GUARD, NULL, false), m_ok(this, IDOK),
+ CSuper(proto, IDD_GUARD, false), m_ok(this, IDOK),
m_text(this, IDC_TEXT), m_link(this, IDC_GETDOMAIN, domain)
{
mir_strcpy(m_domain, domain);
@@ -75,7 +75,7 @@ char * CSteamGuardDialog::GetGuardCode()
/////////////////////////////////////////////////////////////////////////////////
CSteamCaptchaDialog::CSteamCaptchaDialog(CSteamProto *proto, BYTE *captchaImage, int captchaImageSize) :
- CSuper(proto, IDD_GUARD, NULL, false),
+ CSuper(proto, IDD_GUARD, false),
m_ok(this, IDOK), m_text(this, IDC_TEXT)
{
m_captchaImageSize = captchaImageSize;
@@ -166,10 +166,12 @@ char * CSteamCaptchaDialog::GetCaptchaText()
/////////////////////////////////////////////////////////////////////////////////
CSteamOptionsMain::CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent)
- : CSuper(proto, idDialog, hwndParent, false),
+ : CSuper(proto, idDialog, false),
m_username(this, IDC_USERNAME), m_password(this, IDC_PASSWORD),
m_group(this, IDC_GROUP), m_biggerAvatars(this, IDC_BIGGER_AVATARS)
{
+ SetParent(hwndParent);
+
CreateLink(m_username, "Username", _T(""));
CreateLink(m_password, "Password", _T(""));
CreateLink(m_group, "DefaultGroup", _T("Steam"));
@@ -213,8 +215,10 @@ void CSteamOptionsMain::OnApply()
/////////////////////////////////////////////////////////////////////////////////
CSteamOptionsBlockList::CSteamOptionsBlockList(CSteamProto *proto)
- : CSuper(proto, IDD_OPT_BLOCK_LIST, NULL, false), m_list(this, IDC_LIST),
- m_contacts(this, IDC_CONTACTS), m_add(this, IDC_BLOCK)
+ : CSuper(proto, IDD_OPT_BLOCK_LIST, false),
+ m_list(this, IDC_LIST),
+ m_contacts(this, IDC_CONTACTS),
+ m_add(this, IDC_BLOCK)
{
m_add.OnClick = Callback(this, &CSteamOptionsBlockList::OnBlock);
}