1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: msgdlg.h
|
|
|
|
// Purpose: wxMessageDialog class. Use generic version if no
|
|
|
|
// platform-specific implementation.
|
2003-02-28 16:54:04 -05:00
|
|
|
// Author: Stefan Csomor
|
1999-01-01 11:05:26 -05:00
|
|
|
// Modified by:
|
2003-02-28 16:54:04 -05:00
|
|
|
// Created: 1998-01-01
|
1999-01-01 11:05:26 -05:00
|
|
|
// RCS-ID: $Id$
|
2003-02-28 16:54:04 -05:00
|
|
|
// Copyright: (c) Stefan Csomor
|
2003-02-28 18:48:13 -05:00
|
|
|
// Licence: wxWindows licence
|
1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
|
|
|
|
2002-08-31 07:29:13 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
1999-01-01 11:05:26 -05:00
|
|
|
#pragma interface "msgdlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Message box dialog
|
|
|
|
*/
|
|
|
|
|
2003-03-27 15:14:39 -05:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
|
1999-01-01 11:05:26 -05:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxMessageDialog: public wxDialog
|
|
|
|
{
|
2002-05-08 10:00:23 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
|
|
|
|
1999-01-01 11:05:26 -05:00
|
|
|
protected:
|
|
|
|
wxString m_caption;
|
|
|
|
wxString m_message;
|
|
|
|
long m_dialogStyle;
|
|
|
|
wxWindow * m_parent;
|
|
|
|
public:
|
2002-05-08 10:00:23 -04:00
|
|
|
wxMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
1999-01-01 11:05:26 -05:00
|
|
|
|
|
|
|
int ShowModal();
|
2001-08-10 14:31:15 -04:00
|
|
|
|
|
|
|
// not supported for message dialog, RR
|
2002-05-08 10:00:23 -04:00
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
2001-08-10 14:31:15 -04:00
|
|
|
|
1999-01-01 11:05:26 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_MSGBOXDLG_H_
|