/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IMessageBoxService
 *   Service replaces Win32 MessageBox stuff with custom
 *   dialog box with more options than generic message box have.
 *--------------------------------------------------------------------------
 * @created: Tuesday, October 14, 2003 16:55:45
 */

#if !defined(IMessageBoxService_h_included)
#define IMessageBoxService_h_included
//forward declaration of this class might require
namespace services
{ class IMessageBoxService; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/IMessagingService.h>
#include <core/layout/IChildDialog.h>
#include <core/ui/controls/IUIControl.h>


namespace services
{
  
  class IMessageBoxService : public services::IMessagingService
  {
  public:
    virtual ZRESULT setChildDialog(core::layout::IChildDialog* pDlg)=0;
    virtual ZRESULT setChildControl(core::ui::controls::IUIControl* pControl)=0;
    virtual ZRESULT doModal(LPCTSTR strText, LPCTSTR strCaption=NULL, DWORD dwButtons=MB_OK, DWORD* pdwRes=NULL)=0;
    /* gets rid of controls. */
    virtual ZRESULT clear(void)=0;
  
  };//class IMessageBoxService
};//services

#endif
