Showing results for February 2012 - The Old New Thing

Feb 29, 2012
0
0

What was the nature of the feedback that resulted in the change to the highlighting model for Explorer navigation pane?

Raymond Chen
Raymond Chen

Gabe wanted to know the nature of the feedback that resulted in the change to Explorer navigation pane. Historically, Explorer had a navigation pane that contained a folder tree, and the navigation pane could be toggled on and off. From observations and usability studies, we observed that users in general found this toggling burdensome. People li...

History
Feb 27, 2012
0
0

Why was HDS_FILTERBAR added to the common controls if nobody uses it?

Raymond Chen
Raymond Chen

Mike Dunn was curious about the intended purpose of . The style adds a row below the header control consisting of an edit control and a funnel icon. The funnel icon presumably represents a coffee filter, because after all, everybody in the world drinks coffee as much as people in Seattle. (Developers think they're so clever.) Mike points out t...

History
Feb 24, 2012
0
0

Why does Windows keep showing the old indirect strings even after I update the binary?

Raymond Chen
Raymond Chen

If your application uses indirect localized string resources, and you update the application, you may find that Windows keeps using the old string from the previous version of the application. For example, suppose that you set the localized name for a shortcut to , and in version 1 of your program, you have For version 2, your marke...

Other
Feb 23, 2012
0
0

What does the minus sign in indirect localized string resources mean?

Raymond Chen
Raymond Chen

The syntax for indirect localized string resources is filenamestringId, optionally followed by a semicolon and a comment. A customer wanted to know what the minus signs stands for. The minus sign doesn't "stand for" anything. It's just part of the syntax. It's like asking what the semicolon at the end of a C statement stands for. It doesn't stand...

Other
Feb 21, 2012
0
0

Why don't music files show up in my Recent Items list?

Raymond Chen
Raymond Chen

If you double-click a music file, it doesn't show up in your Recent Items list. What's so special about music files? The technical reason is that the file types are registered with the flag, which means that they don't show up in the Recent Items list (formerly known as Recent Documents), and they don't show up in the Recent or Frequent section ...

Tips/Support
Feb 17, 2012
0
0

How do I find out which process has a file open?

Raymond Chen
Raymond Chen

Classically, there was no way to find out which process has a file open. A file object has a reference count, and when the reference count drops to zero, the file is closed. But there's nobody keeping track of which processes own how many references. (And that's ignoring the case that the reference is not coming from a process in the first place; ...

Code
Feb 16, 2012
0
0

Why does the DrawIcon function draw at the default icon size?

Raymond Chen
Raymond Chen

Miral wondered why the function draws at the default icon size instead of respecting the actual icon size. After all, if you loaded a nonstandard-sized icon via , then presumably you want to use that nonstandard size. The question is one of those types of questions that fails to understand history, like asking why NASA didn't send the space shut...

History