home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xxtmsgbx.h < prev   
C/C++ Source or Header  |  1998-04-06  |  2KB  |  44 lines

  1. #ifndef __OOL_XEXTMSGBOX_H__
  2. #define __OOL_XEXTMSGBOX_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XExtendedMessageBox                   */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 12/96                                 */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xobject.h"
  16. #include "string.h"
  17.  
  18. class XResource;
  19. class XWindow;
  20. class XIcon;
  21.  
  22. class _export_ XMessageButton: public XObject
  23. {
  24.       friend class XExtendedMessageBox;
  25.       MB2D info;
  26.    public:
  27.       XMessageButton(const char * title, const ULONG id=0, const ULONG style = BS_PUSHBUTTON)
  28.             {strcpy(info.achText, title); info.flStyle = style; info.idButton = id; }
  29. };
  30.  
  31.  
  32. class _export_ XExtendedMessageBox: public XObject
  33. {
  34.    private:
  35.      ULONG res;
  36.    public:
  37.      XExtendedMessageBox( const char * s1, const char * s2, const ULONG style, const SHORT buttonCount, const XMessageButton ** buttonList, const XIcon * icon = NULL, const XWindow * owner = NULL, const ULONG id = 0);
  38.      XExtendedMessageBox( const XResource * ms1, const XResource * ms2, const ULONG style, const SHORT buttonCount, const XMessageButton ** buttonList, const XIcon * icon = NULL, const XWindow * owner = NULL, const ULONG id = 0);
  39.      virtual ~XExtendedMessageBox() {;}
  40.      ULONG GetCommand( void ) const { return res; }
  41. };
  42.  
  43. #endif
  44.