#ifndef _WX_MSGBOXDLG_H_
#define _WX_MSGBOXDLG_H_
-class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogWithCustomLabels
+class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
{
public:
wxMessageDialog(wxWindow *parent,
const wxString& caption = wxMessageBoxCaptionStr,
long style = wxOK|wxCENTRE,
const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
- : wxMessageDialogWithCustomLabels(parent, message, caption, style)
+ : wxMessageDialogBase(parent, message, caption, style)
{
m_hook = NULL;
}
// return the font used for the text in the message box
static wxFont GetMessageFont();
+protected:
+ // Override this as task dialogs are always centered on parent.
+ virtual void DoCentre(int dir);
+
private:
// hook procedure used to adjust the message box beyond what the standard
// MessageBox() function can do for us
// offset all buttons starting from the first one given by dx to the right
void OffsetButtonsStartingFrom(int first, int dx);
+ // used by ShowModal() to display a message box when task dialogs
+ // aren't available.
+ int ShowMessageBox();
+
WXHANDLE m_hook; // HHOOK used to position the message box
- DECLARE_DYNAMIC_CLASS(wxMessageDialog)
- wxDECLARE_NO_COPY_CLASS(wxMessageDialog);
+ wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxMessageDialog);
};