1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msgdlg.h
|
|
|
|
// Purpose: wxMessageDialog class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "msgdlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Message box dialog
|
|
|
|
*/
|
|
|
|
|
1999-06-10 14:12:13 -04:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxMessageDialog: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
|
|
|
protected:
|
|
|
|
wxString m_caption;
|
|
|
|
wxString m_message;
|
|
|
|
long m_dialogStyle;
|
|
|
|
wxWindow * m_parent;
|
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
|
|
|
|
|
|
|
|
int ShowModal(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
int WXDLLEXPORT wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr,
|
1998-07-04 11:17:59 -04:00
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
wxWindow *parent = NULL, int x = -1, int y = -1);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_MSGBOXDLG_H_
|