From 6d0076208df04f1d161220beb7cd9155330dead9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Apr 2015 15:05:51 +0000 Subject: dialog fix for Steam git-svn-id: http://svn.miranda-ng.org/main/trunk@12787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_dialogs.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'protocols/Steam/src/steam_dialogs.cpp') 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); } -- cgit v1.2.3