The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

I will be speaking at TechReady11
Jul 22, 2010
Post comments count 0
Post likes count 0

I will be speaking at TechReady11

Raymond Chen
Raymond Chen

This year, it's advanced debugging.

Things I've written that have amused other people, Episode 7
Jul 22, 2010
Post comments count 0
Post likes count 0

Things I've written that have amused other people, Episode 7

Raymond Chen
Raymond Chen

A customer asked for advice on how to accomplish something, the details of which are not important, except to say that what they were trying to do was far more complicated than the twenty-word summary would suggest. And I wasn't convinced that it was a good idea, sort of like asking for advice on how to catch a baseball in your teeth or pick all the cheese off your cheeseburger. I explained several of the pitfalls of their approach, the ones that I could think of off the top of my head, things they need to watch out for or take precautions against, and I concluded with the sentence, "This idea is fraught with p...

No, you can't lock a gadget to the top of the sidebar
Jul 21, 2010
Post comments count 0
Post likes count 0

No, you can't lock a gadget to the top of the sidebar

Raymond Chen
Raymond Chen

In another installment of I bet somebody got a really nice bonus for that feature, I offer you this customer: My customer has created a Windows Vista sidebar gadget and wants to know if there's a way to force this gadget to appear at the top of the sidebar and prevent the user from moving or removing it. I applaud this company for having written the most awesome sidebar gadget in the history of the universe. It's so compelling that it should override the user's preferences and force itself into the upper right corner of their screen in all perpetuity. Unfortunately, Windows was not prepared for a program as ...

Suggestion Box 4
Jul 20, 2010
Post comments count 0
Post likes count 0

Suggestion Box 4

Raymond Chen
Raymond Chen

The topic backlog from Suggestion Box 3 has nearly cleared out, and I've actually been enjoying not having to write up a reply every Monday for the past several months, but all good things must come to an end, and so, without much fanfare, we now have Suggestion Box 4. Remember, the suggestion box is for suggestions for future topics. It isn't for developer support, bug reports, or ranting. Topics I'm inclined to cover: Topics I am not inclined to cover: Selected products at Microsoft participate in the Connect program, and many more have official blogs. Suggestions should be between two and fo...

Management-speak: Multi-perspective content
Jul 20, 2010
Post comments count 0
Post likes count 0

Management-speak: Multi-perspective content

Raymond Chen
Raymond Chen

A colleague of mine visited an internal Web site for task ABC and found that the site was no longer there. Instead it was replaced with a simple message: Designed with the user in mind you will now find contextual ABC and DEF information served up in a secure format alongside all GHI information. Access to relevant multi-perspective content will enable faster resolution for your GHI needs. Translation:

To enable and disable a window, use the EnableWindow function
Jul 19, 2010
Post comments count 0
Post likes count 0

To enable and disable a window, use the EnableWindow function

Raymond Chen
Raymond Chen

Commenter Chris 'Xenon' Hanson points out that fiddling with the style directly via leads to strange behavior. However it isn't the case that "most widget classes work fine." Reaching in and fiddling the style bit directly is like reaching into a program's internal variables and just changing the values: All the other work that is associated with changing the value simply doesn't happen. It's like taking a book you checked out of the library, re-shelving it, and then going into the library computer and marking it as "returned". The bookkeeping will say that the book has been returned, but all the other proce...

How do I launch the Explorer Search window with specific search criteria?
Jul 16, 2010
Post comments count 0
Post likes count 0

How do I launch the Explorer Search window with specific search criteria?

Raymond Chen
Raymond Chen

A customer wanted to know how to launch Explorer's Search window with specific fixed search criteria. It turns out that there are two ways of doing this, the poor man's way and the overachiever's way. The overachiever's way is actually easier to discover. You can use the search-ms protocol to generate a command string that describes the query you want to perform and pass it to . The poor man's way actually requires a little bit of out-of-the-box thinking: Open the Explorer Search window and interactively create the query you want to be able to relaunch later. Now do File, Save Search, and save the query. When...

There's always the low-tech way of managing a process, too
Jul 15, 2010
Post comments count 0
Post likes count 0

There's always the low-tech way of managing a process, too

Raymond Chen
Raymond Chen

One of my colleagues had a problem with content management. I've changed the underlying scenario but the principle is the same. Is there a way to require that someone other than the author of a proposal sign off before the proposal tracking system accepts it? We had an issue where somebody wrote up a proposal, and due to a miscommunication, the proposal coordinator thought the proposal was ready and submitted it prematurely. This happened to another team in our group, and we want to make sure we don't make the same mistake. Another colleague explained: This is a people problem, not a technology problem. One w...

Why don't all the Control Panel applications show up when you open a menu from the address bar?
Jul 14, 2010
Post comments count 0
Post likes count 0

Why don't all the Control Panel applications show up when you open a menu from the address bar?

Raymond Chen
Raymond Chen

One of the features added to the Explorer Address Bar in Windows Vista is the ability to navigate quickly to an item by clicking on its name, or navigate to a folder's children by clicking the arrow that appears next to the item and selecting your destination. One customer reported that there appeared to be a problem with the Control Panel: Switch to Classic View, and then click the arrow next to the words Control Panel. The result is a dropdown menu that shows some but not all of the Control Panel applications. Is this a bug? No, everything is behaving normally. Recall that the dropdown menu shows things that...