Welcome to MSDN Blogs Sign in | Join | Help

October 2006 - Posts

Caching StockIcons for Windows Presentation Framework...

Here is what I've added to the code to handle the BitmapSource cache and hopefully (yes, I have sined by not measuring anything, before or after) improve performance: using BitmapSourceDictionary = System.Collections.Generic. Dictionary < int , System.Windows.Media.Imaging.
Posted by yvesdolc | 0 Comments

Building the Windows SDK samples on Vista...

Well, because of UAC, one needs to change the folders and files' ACLs under "%ProgramFiles%\Microsoft SDKs\Windows\v6.0\Samples" in order to be able to create files (e.g. executables, object files, ...). So this time I decided I would give ICACLS a try
Posted by yvesdolc | 0 Comments

StockIcons for Windows Forms?

This is what I had written to better understand the API, in C++/CLI and for Windows Forms. One could use it like this: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { Drawing::Icon ^ ic = StockIcons::GetIcon(StockIconIdentifier::Shield,
Posted by yvesdolc | 0 Comments

StockIcons for Windows Presentation Framework?

Windows Vista introduces a new native API that allows you to retrieve system-defined Shell icons: SHGetStockIconInfo . Those icons are stored in %SystemRoot%\System32\ImageRes.dll. To understand that API documentation, I read About Icons again: last time
Posted by yvesdolc | 1 Comments
 
Page view tracker