Some good examples here of how to get icons -- although my ExtractIcons class should be more complete than this when it's done -- and particular to WPF instead of Windows.Forms.
There's actually quite a few Visual Studio macro-type solutions here, but the most interesting are the dependency graphs and doxygen automation, and #regions for C++