/***************************************************************************
 *                          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 IScrollBarControl
 *   Implements an ower-draw scrollbar for zmodeler. Scrollbar does not embeds in
 *   window and does not has underlying HWND. It's puraly owner-draw control
 *--------------------------------------------------------------------------
 * @created: Thursday, July 15, 2004 16:14:06
 */

#if !defined(IScrollBarControl_h_included)
#define IScrollBarControl_h_included
//forward declaration of this class might require
namespace core
{ namespace ui
  { namespace controls
    { class IScrollBarControl; }; }; };
#include <zmodeler.h>
#include <core/ui/controls/uiControls.h>
#include <core/ui/controls/IUIControl.h>


namespace core
{
  namespace ui
  {
    namespace controls
    {
      
      class IScrollBarControl : public core::ui::controls::IUIControl
      {
      public:
        virtual ZRESULT setScrollInfo(bool bHoriz, long nSize)=0;
        /* Sets the client rect area where content is displayed */
        virtual ZRESULT setClientRect(ZRect rcWndClient)=0;
        /* Sets content rect area. */
        virtual ZRESULT setContentRect(ZRect rcContent)=0;
        /* Provides offset to scroll conent. */
        virtual ZRESULT setScrollOffset(long nOffset)=0;
        /* Provides offset to scroll conent. */
        virtual ZRESULT getScrollOffset(long& nOffset)=0;
        virtual ZRESULT drawScrollBar(CDC* pDC, ZPoint pt)=0;
      
      };//class IScrollBarControl
    };//controls
  };//ui
};//core

#endif
