diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-10 19:56:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-10 19:56:54 +0300 |
commit | 83402fe2934d403c8d3a436baed5261cd315dc85 (patch) | |
tree | 029a931b63a04bb6c9f4e45f5a797f5108da120c /protocols/Discord/src/options.cpp | |
parent | 9a31e2054ab52d1e6704acf3c93750448f8944ca (diff) |
account manager dialog for Discord
Diffstat (limited to 'protocols/Discord/src/options.cpp')
-rw-r--r-- | protocols/Discord/src/options.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/protocols/Discord/src/options.cpp b/protocols/Discord/src/options.cpp index 2114e47af9..c52424ce6f 100644 --- a/protocols/Discord/src/options.cpp +++ b/protocols/Discord/src/options.cpp @@ -25,8 +25,8 @@ class CDiscardAccountOptions : public CProtoDlgBase<CDiscordProto> ptrW m_wszOldGroup; public: - CDiscardAccountOptions(CDiscordProto *ppro) : - CProtoDlgBase<CDiscordProto>(ppro, IDD_OPTIONS_ACCOUNT), + CDiscardAccountOptions(CDiscordProto *ppro, int iDlgID) : + CProtoDlgBase<CDiscordProto>(ppro, iDlgID, false), m_edGroup(this, IDC_GROUP), m_edUserName(this, IDC_USERNAME), m_edPassword(this, IDC_PASSWORD), @@ -55,6 +55,14 @@ public: ///////////////////////////////////////////////////////////////////////////////////////// +INT_PTR CDiscordProto::SvcCreateAccMgrUI(WPARAM, LPARAM hwndParent) +{ + CDiscardAccountOptions *pDlg = new CDiscardAccountOptions(this, IDD_OPTIONS_ACCMGR); + pDlg->SetParent((HWND)hwndParent); + pDlg->Create(); + return (INT_PTR)pDlg->GetHwnd(); +} + int CDiscordProto::OnOptionsInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; @@ -65,7 +73,7 @@ int CDiscordProto::OnOptionsInit(WPARAM wParam, LPARAM) odp.position = 1; odp.szTab.w = LPGENW("Account"); - odp.pDialog = new CDiscardAccountOptions(this); + odp.pDialog = new CDiscardAccountOptions(this, IDD_OPTIONS_ACCOUNT); Options_AddPage(wParam, &odp); return 0; } |