From dfa4a46bb0e6c6df9d07039fda5ef7f4309915b2 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 4 Aug 2006 01:04:15 +0000 Subject: git-svn-id: svn://mattst88.com/svn/skygipp/trunk@2 a71248a0-261a-0410-b604-901f7c0bd773 --- widgetslider.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 widgetslider.h (limited to 'widgetslider.h') diff --git a/widgetslider.h b/widgetslider.h new file mode 100644 index 0000000..74f6799 --- /dev/null +++ b/widgetslider.h @@ -0,0 +1,63 @@ +#ifndef WIDGETSLIDER_H +#define WIDGETSLIDER_H + +#include + +#include "widget.h" + +//! A Slider class + +class CSlider: public CWidget { + public: + /*! Constructor */ + CSlider(); + + /*! + Create Slider + + \param parent HANDLE of the parent window on which to draw + \param name Name of the Progressbar + \param x Top left x coordinate + \param y Top left y coordinate + \param w Form width + \param h Form height + \param style Style flags + + \return Success: S_OK\n + Failure: E_HANDLE + */ + HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style); + + /*! + Set value of Slider + + \param position Position to set + */ + HRESULT SetValue(int position); + + /*! + Get value of Slider + + \return position + */ + int GetValue(); + + /*! + Set Maximum value of Slider + + \param max Maximum value + */ + HRESULT SetMax(int max); + + /*! + Get Maximum value of Slider + + \return Maximum value + */ + int GetMax(); + private: + int maximum; + int pos; +}; + +#endif -- cgit v1.2.3