diff options
Diffstat (limited to 'protocols/IRCG/src/windows.cpp')
-rw-r--r-- | protocols/IRCG/src/windows.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/protocols/IRCG/src/windows.cpp b/protocols/IRCG/src/windows.cpp index b952e936f3..44a5d90d79 100644 --- a/protocols/IRCG/src/windows.cpp +++ b/protocols/IRCG/src/windows.cpp @@ -90,13 +90,6 @@ bool CWhoisDlg::OnInitDialog() return true;
}
-bool CWhoisDlg::OnClose()
-{
- ShowWindow(m_hwnd, SW_HIDE);
- SendMessage(m_hwnd, WM_SETREDRAW, FALSE, 0);
- return true;
-}
-
void CWhoisDlg::OnDestroy()
{
CCoolIrcDlg::OnDestroy();
@@ -722,13 +715,6 @@ bool CQuestionDlg::OnInitDialog() return true;
}
-bool CQuestionDlg::OnClose()
-{
- if (m_owner)
- m_owner->CloseQuestion();
- return true;
-}
-
bool CQuestionDlg::OnApply()
{
int i = GetWindowTextLength(GetDlgItem(m_hwnd, IDC_EDIT));
@@ -776,6 +762,12 @@ bool CQuestionDlg::OnApply() return true;
}
+void CQuestionDlg::OnDestroy()
+{
+ if (m_owner)
+ m_owner->CloseQuestion();
+}
+
void CQuestionDlg::Activate()
{
ShowWindow(m_hwnd, SW_SHOW);
@@ -934,7 +926,7 @@ bool CManagerDlg::OnClose() m_proto->setWString(p, S.c_str());
mir_free(p);
}
- DestroyWindow(m_hwnd);
+
return true;
}
|