home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / include / wx / generic / msgdlgg.h < prev    next >
C/C++ Source or Header  |  2002-08-31  |  1KB  |  52 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        msgdlgg.h
  3. // Purpose:     Generic wxMessageDialog
  4. // Author:      Julian Smart
  5. // Modified by:
  6. // Created:     01/02/97
  7. // RCS-ID:      $Id: msgdlgg.h,v 1.13 2002/08/31 11:29:12 GD Exp $
  8. // Copyright:   (c)
  9. // Licence:       wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef __MSGDLGH_G__
  13. #define __MSGDLGH_G__
  14.  
  15. #if defined(__GNUG__) && !defined(__APPLE__)
  16. #pragma interface "msgdlgg.h"
  17. #endif
  18.  
  19. #include "wx/setup.h"
  20. #include "wx/dialog.h"
  21.  
  22. // type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
  23. // Returns wxYES/NO/OK/CANCEL
  24.  
  25. WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
  26.  
  27. class WXDLLEXPORT wxGenericMessageDialog: public wxDialog
  28. {
  29. DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
  30.  
  31. public:
  32.     wxGenericMessageDialog(wxWindow *parent, const wxString& message,
  33.         const wxString& caption = wxMessageBoxCaptionStr,
  34.         long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
  35.  
  36.     void OnYes(wxCommandEvent& event);
  37.     void OnNo(wxCommandEvent& event);
  38.     void OnCancel(wxCommandEvent& event);
  39.  
  40. private:
  41.     long m_dialogStyle;
  42.  
  43.     DECLARE_EVENT_TABLE()
  44. };
  45.  
  46. #if (!defined( __WXMSW__ ) && !defined( __WXMAC__) && !defined(__WXPM__)) || defined(__WXUNIVERSAL__)
  47. #define wxMessageDialog wxGenericMessageDialog
  48. #endif
  49.  
  50. #endif
  51.     // __MSGDLGH_G__
  52.