00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CSSLIDER_H__
00020 #define __CSSLIDER_H__
00021
00022 #include "csws/csbutton.h"
00023
00024 enum
00025 {
00032 cscmdSplitterPosChanged = 0x00000d00,
00040 cscmdSplitterPosSet
00041 };
00042
00048 class csSplitter : public csComponent
00049 {
00050 protected:
00052 bool isSliding;
00054 bool isHorizontal;
00056 int mdx, mdy;
00058 int mousex, mousey;
00059
00060 public:
00062 csSplitter (csComponent *pParent);
00063
00065 virtual void Draw ();
00067 virtual bool HandleEvent (iEvent &Event);
00069 bool SetRect (int xmin, int ymin, int xmax, int ymax);
00071 void GetPos (int &x, int &y);
00072 };
00073
00074 #endif // __CSSLIDER_H__