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:
@@ -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)
|
||||
};
|
||||
|
Reference in New Issue
Block a user