Meaning of "IconResource= ..\.. ,(number)" - windows

My first question in Stackoverflow, I'm thinking in making a litle program to edit some folder icons on Windows, I searched for the meaning of the number after the path of the icon but find no answer, the system icons have diferent values, i.e:
Music Folder
IconResource=%SystemRoot%\system32\imageres.dll,-108
Pictures Folder
IconResource=%SystemRoot%\system32\imageres.dll,-113
When we manually change an icon from a folder,usually is used(to keep it in a removable media):
IconResource=..\Icons\icon.ico,0
There is any influence in that last number? Or it doesn't matter for that purpose?

.EXE and .DLL files can contain more than one icon. ,0 is the first icon in the file, this syntax can also be used for .ICO files that only contain one icon.
Positive numbers simply refer to the order the icons are stored in the executable file (,0 is the first, ,1 is the second and ,2 is the third etc.). This order is the same as the order of icons in the standard pick icon dialog in Windows (shortcut properties etc.).
A negative number is the resource id of the icon, this is a number chosen by the author of said executable and can be stable over time even if the number if icons changes if the author chooses to use stable resource ids.
See also:
How the shell converts an icon location into an icon

Related

Is it possible to make the Ctrl-Tab source file switching window (IDE Navigator) in Visual Studio have wider columns?

Some of my source files have long file names and when I press Ctrl-Tab or Shift-Ctrl-Tab, the filenames that are displayed in the Active Files column of the IDE Navigator get truncated (and replaced by an ellipsis) after the 23rd-24th character and become indistinguishable. I am wondering if there is a config file or registry setting somewhere for making the columns in the IDE Navigator wider so that larger file names can fit in the columnar display.
I wouldn't mind making the entire Navigator window larger as well, if it has a max width. When it pops up, I am not interested in seeing the code underneath it, just the filenames of the files that I am about to switch to through consecutive presses of (Shift-)-Ctrl-Tab. I know there is a secret registry entry for showing thumbnails in the Navigator, but I am wondering if there is some control over column width as well.
Thanks for any help.

How to interpret or even control the order of the files opened by MDI applications?

Say a directory contains the following sixteen files:
pos1_conf1_1_OS_1state_lbs.out
pos1_conf1_1_OS_3state_lbs.out
pos1_conf2_1_OS_1state_lbs.out
pos1_conf2_1_OS_3state_lbs.out
pos2_conf1_1_OS_1state_lbs.out
pos2_conf1_1_OS_3state_lbs.out
pos3_conf1_1_OS_1state_lbs.out
pos3_conf1_1_OS_3state_lbs.out
pos4_conf1_1_OS_1state_lbs.out
pos4_conf1_1_OS_3state_lbs.out
pos5_conf1_1_OS_1state_lbs.out
pos5_conf1_1_OS_3state_lbs.out
pos5_conf2_1_OS_1state_lbs.out
pos5_conf2_1_OS_3state_lbs.out
pos6_conf1_1_OS_1state_lbs.out
pos6_conf1_1_OS_3state_lbs.out
If I open them all at once, by "File->Open" or "Drag&Drop", the files are opened in completely random order.
It should be noted that this happens both in commercial software such as ChemDraw and home-made utilities. I am wondering how to interpret or even control this random order of the files opened by MDI applications?
If I recall correctly, the file dialog returns the file with the focus rectangle first, and then the remaining files are in the order in which the dialog displayed them. There is no way for you to change this behaviour so if you don't like it you will have to sort the files.

Windows 7 taskbar icon grouping with multiple similar windows

When I have a number of similar windows opens, for example, multiple explorer windows, they are all grouped into the same icon on the taskbar. When I hover over this I get a thumbnail of the window, and a piece of truncated text which is supposed to help me work out what that window is.
However I also like to have the full path shown in explorer windows, so the truncated text is usually C:\CommonPathToEveryWind...
I have noticed that if I have over 14 explorer windows open, then Windows gives up trying to display these useless thumbnails, and instead gives me a nicely formatted list of paths.
My question is how can I customise this behaviour, to either disable thumbnails all together for a subset of applications where a thumbnail is inappropriate (explorer, 'Everything'); or to lower the max number of thumbnails per grouped taskbar icon to 2; or just to disable thumbnails all together, (without loosing the entire windows theme)
Edit: Just to make it clear what I currently get, and what I actually want. I do still want to keep the grouping behaviour, so that multiple instances of the same program, Explorer for example, only take one slot on the taskbar. What I want is to alter what is displayed when I hover over the grouped icon:
What I actually see - useless thumbnails:-
The style I want for any number of instances:-
Found the answer I was looking for here:
This can be done.
open regedit
navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
right-click on the empty space in the right-hand pane and create new DWORD value
set the name to NumThumbnails
double-click the value and set it to the maximum number of thumbnails you want to see
close regedit, log off and log on again
That should do it. Note that you cannot completely disable thumbnails - setting the value to 0 is the same as setting it to 1.
-Indrek
right click task bar. select properties.
The option you are looking for is labeled taskbar buttons (see picture) and has a drop down box to the right of it. The options are:
always combine, hide labels
combine when taskbar is full
never combine
Note: some PCs don't have aero-supporting graphics cards, so that may hinder your ability to make changes...
Re:
My question is how can I customise this behaviour, to either disable thumbnails all together for a subset of applications where a thumbnail is inappropriate (explorer, 'Everything'); or to lower the max number of thumbnails per grouped taskbar icon to 2;
You can edit this via the Start Menu customize button or through regedit. Instructions with screenshots are found here: http://blogs.technet.com/b/win7/archive/2011/05/10/change-the-number-of-recent-items-displayed-in-windows-7-jump-list.aspx.
Re:
or just to disable thumbnails all together, (without loosing the entire windows theme)
You can edit this via the Advanced Settings menu found in System in the Control Panel or via regedit (as stated in a previous post). Info with screenshots here: http://www.guidingtech.com/12253/turn-off-windows-7-taskbar-thumbnail-previews/.

Ignore folders in solution compare with Beyond Compare

I am trying to compare two large Visual Studio 2010 solutions using Beyond Compare. These solutions have 60 projects, the only way I can find to ignore differences in the bin and obj folders of each project is by right-clicking these in the compare results window. I don't want to have to do this 60 times, so is there any other way I can tell Beyond Compare to ignore these folders in each solution?
This is for version 3,
While you are comparing two folders you can go the menu Session->Session settings and go to the tab named Name Filters. There are several boxes to include or exclude files or folders; locate the one on the bottom right and on each line you can declare the folders that you want to exclude. There is an important combo box on the lower left corner where you can specify if you are going to use this settings for just this time or to use them everytime.
Another way to do this is simple look for the File Filters Toolbar (the one with a combo box and a pair of icons with a pair of glasses), in this combo box you can set your filter, for example -bin\;-obj\ and this will exclude the bin and obj folders.
I know this is old, but I came here looking for the same info for version 4.
Version 4 supports the same functionality but expose on the top toolbar in the session, just add the same -bin\;-obj\ in the "Filters:" text box:

Fastest way to "jump back" to a file in TextMate?

Often, when I am reading code or debugging, I want the ability to quickly jump around files. I especially want to "go back" to where I was. I know about "Command+T", "Command+Shift+T", and, bookmarks. But, I cannot figure out a way to jump around files quickly.
UPDATE: I do not think I my question was clear enough judging by two answers given. Specifically, I am looking for a way to "jump back" to where I was in a file. I know how to navigate in TextMate (in general). I want to know if TextMate has a "jump back" key binding.
It's subtle.
The command-T thing has the files listed in Most Recently Used order.
So, you can go command-T return to get back to your last file real quick. At first I couldn't find it either.
I don't think there's a go to last edit location as there is in, say, IDEA/RubyMine.
Courtesy of MacroMates.com
2.3 Moving Between Files (With Grace)
When working with projects there are a few ways to move between the open files.
The most straightforward way is by clicking on the file tab you need. This can also be done from the keyboard by pressing ⌘1-9, which will switch to file tab 1-9.
You can also use ⌥⌘← and ⌥⌘→ to select the file tab to the left or right of the current one.
It is possible to re-arrange the file tabs by using the mouse to drag-sort them (click and hold the mouse button on a tab and then drag it to the new location). This should make it possible to arrange them so that keyboard switching is more natural.
One more key is ⌥⌘↑ which cycles through text files with the same base name as the current file. This is mainly useful when working with languages which have an interface file (header) and implementation file (source).
When you want to move to a file which is not open you can use the Go to File… action in the Navigation menu (bound to ⌘T). This opens a window like the one shown below.
Go To File
This window lists all text files in the project sorted by last use, which means pressing return will open (or go to) the last file you worked on. So using it this way makes for easy switching to the most recently used file.
You can enter a filter string to narrow down the number of files shown. This filter string is matched against the filenames as an abbreviation and the files are sorted according to how well they match the given abbreviation. For example in the picture above the filter string is otv and TextMate determines that OakTextView.h is the best match for that (by placing it at the top).
The file I want is OakTextView.mm which ranks as #2. But since I have already corrected it in the past, TextMate has learned that this is the match that should go together with the otv filter string, i.e. it is adaptive and learns from your usage patterns.
If you have a project window open, you can leave frequently-accessed files open (in tabs), and then use ⌘+1-9 to jump to open tabs.

Resources