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