1 #ifndef _HSCROLL_SERVICE_PROVIDER_ 2 #define _HSCROLL_SERVICE_PROVIDER_ 3 4 class hscroll_service_provider : public widget_service_provider 5 { 6 public: 7 hscroll_service_provider(); 8 GetType()9 virtual int GetType() {return GX_TYPE_HORIZONTAL_SCROLL;} GetTypeName(widget_info *)10 virtual CString GetTypeName(widget_info *) {return CString("GX_TYPE_HORIZONTAL_SCROLL");} GetShortName()11 virtual CString GetShortName() {return CString("hscroll");} 12 virtual CString GetVarDeclaration(); GetControlBlockName()13 virtual CString GetControlBlockName() {return CString("GX_SCROLLBAR");} 14 DeclarePropertiesStruct()15 virtual CString DeclarePropertiesStruct() {return CString("");} 16 virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info); 17 18 virtual CString GetCreateFromDefFunctionName(); 19 virtual CString GetCreateFromDefFunction(int version); 20 21 virtual void SaveToProject(xml_writer &, studiox_project *project, int display, widget_info *); 22 virtual void ReadFromProject(xml_reader &, studiox_project *project, int display, widget_info *info, ULONG valid_styles); 23 24 virtual widget_info *CreateNewInstance(GX_WIDGET *parent); 25 virtual GX_WIDGET *GenerateFromInfo(GX_WIDGET *parent, widget_info *info); 26 27 virtual void AssignPixelmap(widget_info *info, int index, GX_RESOURCE_ID pixmap_id); 28 virtual void Autosize(widget_info *info); 29 }; 30 31 #endif 32