February 27th, 2012

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

Mike Dunn was curious about the intended purpose of HDS_FILTERBAR. The HDS_FILTERBAR 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 that new features of the common controls were nearly always used by whatever version of Windows or Internet Explorer shipped that new version. The HDS_FILTERBAR style is a notable exception. What happened? I believe the HDS_FILTERBAR feature was originally intended for use by Active Directory; my guess is that dialogs like Find Computer would have taken advantage of it. For whatever reason, that feature was cut from Active Directory, which is why you didn’t see anybody using it. However, the feature was cut after the code for the feature was already written and checked into the common controls under the style HDS_FILTERBAR. The Active Directory team either forgot to tell the Common Controls team, “Hey, you know that feature we asked you to write for us? Yeah, we don’t need it after all,” or they did, and the Common Controls team said, “Well, we already wrote it, and we don’t want to take the risk that removing it won’t introduce a bug, so we’ll just leave it in. Maybe somebody else can find a use for it.”

The result was a feature in the header control that nobody used. And since nobody used it, I wouldn’t be surprised if it’s a little buggy. (We already know that it’s more than little ugly.)

Topics
History

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.