Subversion Repositories spk

Rev

Rev 121 | Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 121 Rev 129
Line 106... Line 106...
106
	return Str;
106
	return Str;
107
}
107
}
108
 
108
 
109
inline System::Drawing::Bitmap ^LoadIcon(CBaseFile *p)
109
inline System::Drawing::Bitmap ^LoadIcon(CBaseFile *p)
110
{
110
{
111
	CyString file = p->GetIcon()->GetFilePointer();
111
	Utils::String file = p->GetIcon()->filePointer();
112
	if ( !file.Empty() )
112
	if (!file.empty())
113
	{
113
	{
114
		file = file.FindReplace("/", "\\").FindReplace("\\\\", "\\");
114
		file = file.findReplace("/", "\\").findReplace("\\\\", "\\");
115
		bool doIcon = false;
115
		bool doIcon = false;
116
		System::String ^sFile = SystemStringFromCyString(file);
116
		System::String ^sFile = _US(file);
117
		if ( System::IO::File::Exists(sFile) )
117
		if ( System::IO::File::Exists(sFile) )
118
		{
118
		{
119
			Bitmap ^myBitmap = gcnew Bitmap(sFile);
119
			Bitmap ^myBitmap = gcnew Bitmap(sFile);
120
			return myBitmap;
120
			return myBitmap;
121
		}
121
		}