The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jan 25, 2007
Post comments count 0
Post likes count 1

Not my finest hour: Where are my keys?

Raymond Chen

Tuesday was not my finest hour. Towards the end of the work day, I noticed that my coat was nowhere to be seen. I distinctly remember putting it on the back of my chair, but it's not there now. And where are my keys? After checking all the likely places (and several unlikely ones) in my office, I realized that we had gone out to lunch in my car, and it was a warm day, so I walked outside to my car and, yup, my coat is sitting there in the back seat. Now, my normal routine when locking the car is to hold my keys in one hand while locking the car with the other. Upon further consideration, I figured that I locked...

Jan 25, 2007
Post comments count 0
Post likes count 1

Where did the Windows Vista wallpaper images come from?

Raymond Chen

Windows Vista needed some new wallpapers. Where to get them? Historically, they were purchased from a professional service, which is expensive since Microsoft would need worldwide rights to reproduce (not just use) the image, and not just for a few months, but for decades. Besides, there are a lot of good amateur photographers at Microsoft who would be thrilled to have their work displayed on millions of computers all over the world. But why stop there? Creative Director Jenny Lam expanded the search to Flickr and contacted people who took really interesting pictures, asking them, "So, how would you like one of...

Jan 24, 2007
Post comments count 0
Post likes count 0

Walking through packed snow and ice with a little more confidence

Raymond Chen

:: Wendy :: invited several her friends to join her in some tea two weeks ago, and during the conversation, LaCroix recommended a product called Yaktrax. It's a lightweight little mesh that straps to the bottom of your shoe and acts like miniature tire chains, but for your shoes. Two of my friends acted on this tip immediately and had their pairs ready in time for our next snowstorm. I, on the other hand, was slow to act and was caught unprepared. It was a sight to behold. Not the storm but the effect of the storm on traffic. I had never before seen a traffic jam on Microsoft Way. (A friend of mi...

Jan 24, 2007
Post comments count 0
Post likes count 1

The undeletable Outlook folder, episode 2

Raymond Chen

I had another undeletable Outlook folder, and all my tricks for cajoling Outlook into letting me delete it failed. I already deleted all the items in it, emptied it of offline items, deleted all the failures from my Sync Issues folder, but still I couldn't delete the folder. But I came up with a new trick. I moved the folder out of its normal location and made it a direct child of "Mailbox". As a result, it was no longer part of the list of synchronzized folders. I synchronized one more time, and then Outlook let me delete the folder. As I noted before, I don't know if this'll work for you, but it's another t...

Jan 23, 2007
Post comments count 0
Post likes count 1

Unexpected consequences of writing a book: Public appearances

Raymond Chen

One of the consequences of being a minor book author is that you can't be a private person any more; you're automatically a public personality. If somebody asks you for an interview, you can't just reject it as a matter of principle. You're now doing it not for yourself but in the service of your book. (Major authors might be able to get away with the whole "reclusive author" shtick, but you have to be pretty darn huge in order to pull it off.) This means that you're going to see me popping up more often than before. Today, my interview with .Net Rocks! went up a week ahead of schedule. (I had originally plan...

Jan 23, 2007
Post comments count 0
Post likes count 1

Non-psychic debugging: If you can't find something, make sure you're looking in the right place

Raymond Chen

This isn't psychic debugging, but it's the sort of dumb mistake everybody makes and which you can't see when re-reading your code because your brain shows you what you want to see, not what's really there. I'm trying to respond to the notification, but it's not working. What am I doing wrong? You can stare at this code for ages and completely overlook that the wrong window handle is being passed to and . The of a message is the window that is generating the notification; in this case, the is generated from the property sheet frame window. But the result of a dialog message needs to be stored in the ext...

Jan 22, 2007
Post comments count 0
Post likes count 1

The cost of continuously-visible affordances with dynamic states

Raymond Chen

Serge Wautier asks, "Why are the copy/cut/paste buttons not disabled when there's nothing to copy/cut/paste?", noting that the back/forward buttons do disable themselves when navigation is not possible in that direction. To get to this question, we'll first go back in time a bit to a world without toolbars. In those early days, these dynamic options such as copy/cut/paste appeared solely on the Edit menu. Since the contents of Edit menu were visible only when the user clicked on it, the cut/copy/paste options needed to be updated only when the menu was visible. In other words, during handling. This is also why...

Jan 19, 2007
Post comments count 0
Post likes count 0

2006 storm aftermath: A look back

Raymond Chen

It's been about a month since the windstorm that brought the Seattle area to a standstill. Puget Sound Energy has posted a recap of the storm, including what I consider to be a wonderful euphemism: We thank those customers who called to update us with valuable outage status information. Translation: "We would like to acknowledge all the people who called in to complain." Not surprisingly, the storm got a lot of coverage in the local paper. Conspiracy theorists will be woefully dissatisfied with this explanation of how the utility companies decide which lines to repair first. I heard in a radio story that ...

Jan 19, 2007
Post comments count 0
Post likes count 1

What does the fCreate parameter to SHCreateStreamOnFileEx mean?

Raymond Chen

The documentation for the parameter for the function covers the issue, but since people seem to really like charts and tables, I'll present the same information in tabular form.