From: Bulat Z. <bul...@gm...> - 2009-08-17 15:48:30
|
Hello Andy, Monday, August 17, 2009, 7:07:03 PM, you wrote: > It accept different FilePath, such as A.pdf , B.mp3 , C.hs, i will got > icons for those file-type from current theme. the simplest way i know is to ask Windows to paint icon to some hidden window and then read it to Pixbuf. some hints: SHFILEINFO shFileInfo; SHGetFileInfo(filename, 0, &shFileInfo, sizeof(shFileInfo), SHGFI_ICON); ExtractIcon - file's individual icon http://msdn.microsoft.com/en-us/library/dd183402(VS.85).aspx -- Best regards, Bulat mailto:Bul...@gm... |