2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-03-11 15:34:42 +00:00
|
|
|
// Name: wx/mac/carbon/msgdlg.h
|
2004-03-23 17:35:05 +00:00
|
|
|
// Purpose: wxMessageDialog class. Use generic version if no
|
|
|
|
// platform-specific implementation.
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 17:35:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
|
|
|
|
2006-01-26 17:20:50 +00:00
|
|
|
#include "wx/defs.h"
|
2004-03-23 17:35:05 +00:00
|
|
|
#include "wx/dialog.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Message box dialog
|
|
|
|
*/
|
|
|
|
|
2006-01-16 14:59:55 +00:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
|
2004-03-23 17:35:05 +00:00
|
|
|
|
2005-03-11 15:34:42 +00:00
|
|
|
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
|
2004-03-23 17:35:05 +00:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
2005-03-11 15:34:42 +00:00
|
|
|
|
2004-03-23 17:35:05 +00:00
|
|
|
protected:
|
|
|
|
wxString m_caption;
|
|
|
|
wxString m_message;
|
|
|
|
wxWindow * m_parent;
|
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
|
|
|
|
|
|
|
int ShowModal();
|
2005-03-11 15:34:42 +00:00
|
|
|
|
2006-02-08 21:47:09 +00:00
|
|
|
protected:
|
2004-03-23 17:35:05 +00:00
|
|
|
// not supported for message dialog, RR
|
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_MSGBOXDLG_H_
|