msgdlg.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/motif/msgdlg.h
  3. // Purpose: wxMessageDialog class. Use generic version if no
  4. // platform-specific implementation.
  5. // Author: Julian Smart
  6. // Modified by:
  7. // Created: 17/09/98
  8. // Copyright: (c) Julian Smart
  9. // Licence: wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11. #ifndef _WX_MSGBOXDLG_H_
  12. #define _WX_MSGBOXDLG_H_
  13. // ----------------------------------------------------------------------------
  14. // Message box dialog
  15. // ----------------------------------------------------------------------------
  16. class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
  17. {
  18. public:
  19. wxMessageDialog(wxWindow *parent,
  20. const wxString& message,
  21. const wxString& caption = wxMessageBoxCaptionStr,
  22. long style = wxOK | wxCENTRE,
  23. const wxPoint& WXUNUSED(pos) = wxDefaultPosition)
  24. : wxMessageDialogBase(parent, message, caption, style)
  25. {
  26. }
  27. virtual int ShowModal();
  28. // implementation only from now on
  29. // called by the Motif callback
  30. void SetResult(long result) { m_result = result; }
  31. protected:
  32. long m_result;
  33. DECLARE_DYNAMIC_CLASS(wxMessageDialog)
  34. };
  35. #endif // _WX_MSGBOXDLG_H_