Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Get icons from OS (including Tortoise overlay)

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Maxim Posted - Jul 29 2009 : 06:59:25 AM
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.
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Aug 04 2009 : 2:40:40 PM
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.
Maxim Posted - Aug 04 2009 : 06:23:28 AM
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.
accord Posted - Jul 30 2009 : 3:23:00 PM
What icons are you talking about? The ones in the Open file in solution?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000