The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

How do I get mouse messages faster than WM_MOUSEMOVE?
Mar 14, 2012
Post comments count 0
Post likes count 0

How do I get mouse messages faster than WM_MOUSEMOVE?

Raymond Chen
Raymond Chen

We saw some time ago that the rate at which you receive messages is entirely up to how fast your program calls . But what if your program is calling as fast as it can, and it's still not fast enough? You can use the function to ask the window manager, "Hey, can you tell me about the mouse messages I missed?" I can think of two cases where you might want to do this: You are a program like Paint, where the user is drawing with the mouse and you want to capture every nuance of the mouse motion. You are a program that supports something like mouse gestures, so you want the full mouse curve informatio...

Microspeak: Friction
Mar 13, 2012
Post comments count 0
Post likes count 0

Microspeak: Friction

Raymond Chen
Raymond Chen

In physics, friction is a force that resists motion. In Microspeak, friction is an obstacle which prevents somebody from doing something you want them to do. (The preferred verb phrase for getting over an obstacle is overcoming friction.) There is friction in the system for X that is reduced when developing with Y. Using X reduces friction of someone being able to do Y without having to Z. Many companies have found that outsourcing activities can introduce unexpected complexity, add cost and friction into the value chain, and require more senior management attention and deeper management skills than anticip...

If you have multiple versions of Windows installed, why do they all try to adjust the clock?
Mar 12, 2012
Post comments count 0
Post likes count 0

If you have multiple versions of Windows installed, why do they all try to adjust the clock?

Raymond Chen
Raymond Chen

Commenter Martin notes that if you have multiple copies of Windows installed on your machine, then each one will try to adjust the clock when you enter or exit daylight saving time. "I cannot believe that this feature is a bug. Please could you comment this?" This falls into a category of issue that I like to call "So what did you expect?" (This was the catch phrase of the old Call-A.P.P.L.E. magazine.) If you have multiple operating systems installed on your machine, each one thinks that it has control of your computer. It's not like there's some standard cross-operating system mechanism for negotiating cont...

To some people, time zones are just a fancy way of sounding important
Mar 9, 2012
Post comments count 0
Post likes count 1

To some people, time zones are just a fancy way of sounding important

Raymond Chen
Raymond Chen

Standard time sounds much more standard.

Alt text for images are important in email, too
Mar 8, 2012
Post comments count 0
Post likes count 0

Alt text for images are important in email, too

Raymond Chen
Raymond Chen

Apparently the IT department gave up on getting everybody to read email in plain text, and other service departments at Microsoft have moved beyond simply using HTML for markup and started adding banner images to the top of each email message. Because the best way to promote your brand to other parts of the company is to stick a banner logo at the top of every message. Here's the HTML for one such banner image, with line breaks inserted for sanity. The great thing about the absurd alt text is that that's what appears in the autopreview window and in the email notification pop-up. But wait, it gets wors...

Why do program files go into the Program Files directory?
Mar 7, 2012
Post comments count 0
Post likes count 0

Why do program files go into the Program Files directory?

Raymond Chen
Raymond Chen

Some of Microsoft's software certification programs (such as the Windows Logo) require that applications set their default installation location to the Program Files directory. What is the reason for this? One technical reason is that this ensures that the directory receives an appropriate default security descriptor. But the Program Files directory was introduced in Windows 95, which didn't have security descriptors, so that can't be the entire reason. Rewind the clock to Windows 3.1. Microsoft didn't provide guidance on where applications should install by default. As a result, they went everywhere....

Why does Explorer ignore seconds when sorting by Date Modified?
Mar 6, 2012
Post comments count 0
Post likes count 0

Why does Explorer ignore seconds when sorting by Date Modified?

Raymond Chen
Raymond Chen

A customer reported that Explorer appears to be ignoring the seconds when sorting by Date Modified. The customer was kind enough to include detailed steps to reproduce the problem. Start with a folder with several files, sorted by Date Modified. Right-click on the newest file, select Copy. Right-click on the blank column on the right, select Paste. This will create a file with the same name, but with "- Copy" appended. Press F5 to refresh the view and note the sort order. The copy appears at the top of the list. Highlight the newly-created file, hit F2, and give the document a different name, an...

Why doesn't the Maximize button maximize across all monitors?
Mar 5, 2012
Post comments count 0
Post likes count 0

Why doesn't the Maximize button maximize across all monitors?

Raymond Chen
Raymond Chen

Cheong wonders why there isn't a way for the Maximize button to maximize a window across multiple monitors. (Troll asks a similar question: Why doesn't Windows support spanned mode for multiple monitors?) We tried it that way at first. And we quickly discovered why it was a bad idea. Wait, I'm not finished yet. Things get still worse if your two monitors are not the same size. In that case, the virtual screen is larger than the visible region. For example, my monitor arrangement has a landscape monitor on the left and a portrait monitor on the right, with the bottoms of the monitors aligned. ...

This isn't Highlights magazine: Sort keys and why they change
Mar 2, 2012
Post comments count 0
Post likes count 0

This isn't Highlights magazine: Sort keys and why they change

Raymond Chen
Raymond Chen

Some time ago, Ry Jones gave some examples of Quotable Raymond, including the following: How to make a good doc bug report: 1. Don't embed pictures. ... This isn't Highlights magazine. What Ry didn't realize is that his "..." totally misrepresented the message. There were actually two separate items, but he combined them into one and replaced the missing parts with "...". I already ranted some time ago about embedding pictures. Today I'll rant about the second item, which is turning a bug report into the Spot the difference between these two pictures game in Highlights magazine. A customer reporte...