The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

There is no interface for preventing your notification icon from being hidden
Dec 15, 2010
Post comments count 0
Post likes count 0

There is no interface for preventing your notification icon from being hidden

Raymond Chen
Raymond Chen

Yes, it's another installment of I bet somebody got a really nice bonus for that feature. A customer had this question for the Windows 7 team: Our program creates a notification icon, and we found that on Windows 7 it is hidden. It appears properly on all previous versions of Windows. What is the API to make our icon visible? First of all, I'd like to congratulate you on writing the most awesome program in the history of the universe. Unfortunately, Windows 7 was not prepared for your awesomeness, because there is no way to prevent your notification icon from being hidden. That's because if t...

The subtleties of a Will Ferrell movie, and other observations from the in-flight entertainment on a Chinese airline
Dec 14, 2010
Post comments count 0
Post likes count 0

The subtleties of a Will Ferrell movie, and other observations from the in-flight entertainment on a Chinese airline

Raymond Chen
Raymond Chen

My flights to and from Beijing were on Hainan Airlines, a Chinese airline. One consequence of this is that Mandarin Chinese is the primary language of communication; English is a distant second. It also means that the in-flight movies are subtitled in Chinese, so if you can't read Chinese, you are restricted to movies in languages you understand. I wasn't interested in the English-language movies, although I did watch a little bit of "The Other Guys", a Will Ferrell vehicle. In one scene, Ferrell's character and his friend have dinner in a Chinese restaurant. Ferrell's character says to the waiter, "謝#...

Microspeak: Informing a product
Dec 14, 2010
Post comments count 0
Post likes count 0

Microspeak: Informing a product

Raymond Chen
Raymond Chen

Microspeak is not always about changing a word from a verb to a noun or changing a noun to a verb or even changing a noun into a verb and then back into a noun. Sometimes it's about data compression. This testing won't inform RC, but we'll need it to inform an RTM release. First, you need to familiarize yourself with a less-used sense of the verb to inform, namely to guide or direct. A typical use would be something like "This data will inform the decision whether to continue with the original plan in Product Q." In other words, this data will be used to help decide whether to continue with the origina...

Why are the Compression and Encryption options check boxes instead of radio buttons?
Dec 13, 2010
Post comments count 0
Post likes count 0

Why are the Compression and Encryption options check boxes instead of radio buttons?

Raymond Chen
Raymond Chen

Tanveer Badar asks why the file properties Advanced dialog shows two checkboxes (compression and encryption) even though NTFS supports only one or the other at a time. "Why not have two radio buttons instead of these silly check boxes?" Actually, if you want radio buttons, you'd need three, one to cover the "neither" case. Let's look at what those radio buttons would look like: Compress contents to save disk space Encrypt contents to secure data Neither compress nor encrypt This takes an implementation detail (that NTFS currently does not support simultaneous compression and encryption) and elevates it to th...

Some notes on my trip to Beijing disguised as travel tips
Dec 10, 2010
Post comments count 0
Post likes count 0

Some notes on my trip to Beijing disguised as travel tips

Raymond Chen
Raymond Chen

Single-use tickets purchased from subway vending machines are valid only on the day of purchase for use in that station. Do not buy your return ticket at the same time as your outbound ticket because it will not work. This detail is clearly explained on the ticket that you receive after you have paid for it. (Also, the vending machine will ask you how many "sheets" you want. It's asking how many tickets you want.) Subway station names are printed in both Chinese and pinyin, but the pinyin omits the tone markers, which means that you will have no idea how you're supposed to pronounce the station name, should anyb...

How do I limit the size of the preview window used by Aero Snap?
Dec 10, 2010
Post comments count 0
Post likes count 0

How do I limit the size of the preview window used by Aero Snap?

Raymond Chen
Raymond Chen

A customer reported that the translucent preview shows by Aero Snap showed the wrong dimensions for their application window. "As you can see in the screen shot, the preview is too wide. Our application window has a maximum width, but the preview is fully half the width of the screen. How can we disable the Aero Snap feature?" Whoa there, giving up so easily? Sounds like you're throwing the baby out with the bathwater. To control the size of the preview window used by Aero Snap, you respond to the same message you've already been responding to in order to tell Windows the valid range of sizes for your windo...

What appears superficially to be a line is actually just a one-dimensional mob
Dec 9, 2010
Post comments count 0
Post likes count 0

What appears superficially to be a line is actually just a one-dimensional mob

Raymond Chen
Raymond Chen

In China, queueing is honored more in the breach than in the observance. If you see a line for something, you must understand that what you are seeing is not really a line. It is a one-dimensional mob. You must be prepared to defend your position in line fiercely, because any sign of weakness will be pounced upon, and the next thing you know, five people just cut in front of you. I first became aware of this characteristic of "Chinese queueing theory" while still at the airport. When the gate agents announced that the flight to Beijing had begun boarding, a one-dimensional mob quickly formed, and I naïvely...

We've traced the call and it's coming from inside the house: Grid lines in list view report mode
Dec 9, 2010
Post comments count 0
Post likes count 0

We've traced the call and it's coming from inside the house: Grid lines in list view report mode

Raymond Chen
Raymond Chen

A customer wanted to know how to remove the grid lines from a list view control in report mode. The customer was kind enough to include the source code for the relevant part of the program and drew our attention to the line in the resource file that he believed to be the source of the problem: The customer didn't know it, but that line in the resource file was of no help at all in diagnosing the problem. Fortunately, we found the root cause in the source code provided: The grid lines are there because you explicitly asked for them! The customer accepted this answer without response. One of my colleagues ...

Kindergarten writing exercise from my niece
Dec 8, 2010
Post comments count 0
Post likes count 0

Kindergarten writing exercise from my niece

Raymond Chen
Raymond Chen

When my niece was in kindergarten, a regular classroom assignment was for students to write a few sentences about something happening in their lives. For one of the assignments, my niece wrote the following: My auntie has a baby in her tumy. If it is a boy I will call him Kevin. If it is a grl I will call her Alula. We have no idea where the name "Alula" came from. The baby turned out to be a girl, but her aunt chose a different name. My niece did not hold up her end of the bargain and call her new cousin "Alula". Update: Upon further reflection, I think the proposed boy's name was "Derik", not Kevin. Not i...