Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Get icons from OS (including Tortoise overlay)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxim
Ketchup Master

59 Posts

Posted - Jul 29 2009 :  06:59:25 AM  Show Profile  Reply with Quote
Anywhere I see an icon I'd also like to see the OS overlay. I have a custom mod of WndTabs (in VC6) with this and I find it very useful as I use TortoiseCVS/SVN and it therefore shows which files are modified since the last checkin, and other VCS metadata. Having the icons match the OS would also make it a little more consistent (not that I have particularly wacky icons).

Here's my code:
SHFILEINFO sfi;
SHGetFileInfo(path, 0, &sfi, sizeof(sfi), SHGFI_ICON | SHGFI_SMALLICON | SHGFI_ADDOVERLAYS);
m_TabImages.Replace(iCurrTabIndex, sfi.hIcon);
::DestroyIcon(sfi.hIcon);


It's probably slower than using a hard-coded imagelist so maybe worth making optional, or you could try to only look up the visible icons.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 30 2009 :  3:23:00 PM  Show Profile  Reply with Quote
What icons are you talking about? The ones in the Open file in solution?
Go to Top of Page

Maxim
Ketchup Master

59 Posts

Posted - Aug 04 2009 :  06:23:28 AM  Show Profile  Reply with Quote
That's the place I was thinking of. I'd thought there were more file icons around but it seems not? VA View has icons but it seems they're trying to convey opened vs. edited, instead of file type.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 04 2009 :  2:40:40 PM  Show Profile  Reply with Quote
I think it would be slow even for visible icons. On the other hand it would be inconsistent with FileView.
We are considering to always use the same icons as used in the solution explorer, but of course it will work only in newer Visual Studios. It would be consistent and implementing and another method for VC6 is not likely.

Edited by - accord on Aug 04 2009 2:48:37 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000