allow centering wxMessageDialog on its parent window (patch 1836072)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-22 16:52:31 +00:00
parent eeb0bee1d3
commit 1d89da8a5c
4 changed files with 79 additions and 4 deletions

View File

@@ -22,12 +22,17 @@ public:
const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
: wxMessageDialogBase(parent, message, caption, style)
{
m_hook = NULL;
}
virtual int ShowModal();
protected:
private:
static WXLRESULT wxCALLBACK HookFunction(int code, WXWPARAM, WXLPARAM);
WXHANDLE m_hook; // HHOOK used to position the message box
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
DECLARE_NO_COPY_CLASS(wxMessageDialog)
};