Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » FileSel&FileList, Path » FileSel and international files problem when getting icon image
Re: FileSel and international files problem when getting icon image [message #18806 is a reply to message #18788] Wed, 22 October 2008 23:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 21 October 2008 01:00

Hello luzr

I have seen that with the last version with SHFILEINFO the right icon of a file called "印经济" can be readed, but if instead, "印经济" is a folder, the folder icon can be got with GetFileIcon(path, true), but not with GetFileIcon(path, true, true) as it is in the sources.

I thought that a solution would be changing NativePathIcon to something like:
#if defined(PLATFORM_WIN32)
	if (IsDrive(path) && IsSpecialFolder(path))
		return GetFileIcon(path, true, true);
	else
		return GetFileIcon(path, folder);
#endif

where IsSpecialFolder(path) would be true in folders with icons like Desktop but, if I where in Taiwan, could I get the taiwanese Desktop icon ?

Best regards
Koldo


I do not quite understand this Smile Is this tested? Should I replace the current code?

Of course, there are always two correct solutions:

- introduce another .dli and call W or A variant based on system (W in WinNT)

- finally trash Win98....

I would really be happy to finally end support for Win98. Unfortunately, there was still demand for it, believe or not.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: knowing extinsion and name
Next Topic: Problem with FileSel called from menu
Goto Forum:
  


Current Time: Fri Mar 29 13:03:03 CET 2024

Total time taken to generate the page: 0.01430 seconds