3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
15 istream &operator>>(istream &is, State &state)
25 unsigned underscore=str.find('_', start);
26 if(!str.compare(start, underscore-start, "NORMAL"))
28 else if(!str.compare(start, underscore-start, "HOVER"))
30 else if(!str.compare(start, underscore-start, "ACTIVE"))
32 else if(!str.compare(start, underscore-start, "FOCUS"))
34 else if(!str.compare(start, underscore-start, "DISABLED"))
38 is.setstate(ios_base::failbit);
42 if(underscore==std::string::npos)