The Old New Thing

News flash: Doing something that requires your attention reduces your ability to do other things at the same time which also require your attention

The New York Times points out that if you engage in an activity that requires your attention, then it reduces your ability to do other things at the same time which also require your attention. For some reason, however this is news when one of those things is sending text messages. I wonder if, had contemporary news editors existed back in ...

I’ve seen why people steal the foreground window for their dialog box

Now, it may very well be true that many people who use as the owner for a dialog box because they don't know any better, but I'm not convinced that everyone who does so did it out of ignorance; I'm sure there's some malice in there, too. Here's how it may have gone down: Bug: I start the product setup, and then I go and work on ...

Steamy coffee leaves grounds for concern

I'm embarrassed for the bad pun,¹ but the subject is serious. Two stories appeared in the two major local newspapers on the same day. Sure, it may have been a coincidence, but I considered it a cautionary tale. Follow-ups Baristas resign en masse when the coffee stand owner decides to adopt a provocative dress code. Over a...

How can I tell that a directory is really a recycle bin?

Here's a question inspired by an actual customer question: I need a function that, given a path, tells me whether it is a Recycle Bin folder. I tried using functions like SHGetSpecialFolderPath with CSIDL_BITBUCKET, but that doesn't work because the Recycle Bin is a virtual folder that is the union of the Recycle Bins of all drives. The ...

The purpose of charts is normally to make information easier, not harder, to understand

In a presentation a few years ago, there was a pie chart, but not just any pie chart, but a pie chart that appeared to be specifically designed to convey no information whatsoever. (The presenter didn't realize this, of course, and probably thought it was awesomely cool.) The pie chart consisted of five wedges, each of which was a slightly ...

The terms of service you have to accept before you can see them

I had a few hours to kill at the airport a few years ago before my flight was ready for boarding, so I turned on my laptop and connected to the airport's wireless network. Like most pay services, they way you sign up is to fire up a web browser and go to any web site. Regardless of what site you go to, you are redirected to the "Here's how to ...

Who is responsible for destroying the font passed in the WM_SETFONT message?

The message tells a control which font you would like the control to use for its text. This message is a convention, not a rule. For example, our scratch program doesn't pay attention to the message. If somebody sends it a , nothing happens. The scratch program just ignores the caller and uses whatever font it wants. Although supporting ...