summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgtimedout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src/msgtimedout.cpp')
-rw-r--r--plugins/Scriver/src/msgtimedout.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgtimedout.cpp b/plugins/Scriver/src/msgtimedout.cpp
index 672b5ea81d..c003ab2913 100644
--- a/plugins/Scriver/src/msgtimedout.cpp
+++ b/plugins/Scriver/src/msgtimedout.cpp
@@ -43,7 +43,7 @@ CErrorDlg::CErrorDlg(const wchar_t *pwszDescr, HWND hWnd, MessageSendQueueItem *
m_btnCancel.OnClick = Callback(this, &CErrorDlg::onCancel);
}
-void CErrorDlg::OnInitDialog()
+bool CErrorDlg::OnInitDialog()
{
ShowWindow(GetParent(m_hwndParent), SW_RESTORE);
@@ -59,6 +59,7 @@ void CErrorDlg::OnInitDialog()
GetWindowRect(m_hwnd, &rc);
GetWindowRect(GetParent(m_hwndParent), &rcParent);
SetWindowPos(m_hwnd, HWND_TOP, rcParent.left + (rcParent.right - rcParent.left - rc.right + rc.left) / 2, rcParent.top + (rcParent.bottom - rcParent.top - rc.bottom + rc.top) / 2, 0, 0, SWP_NOSIZE | SWP_SHOWWINDOW);
+ return true;
}
void CErrorDlg::onOk(CCtrlButton*)