The Old New Thing

Why do some people call the taskbar the “tray”?

Short answer: Because they're wrong. Long answer: The official name for the thingie at the bottom of the screen is the "taskbar". The taskbar contains a variety of elements, such as the "Start Button", a collection of "taskbar buttons", the clock, and the "Taskbar Notification Area". One of the most common errors is to refer to the Taskbar ...

Scrollbars part 9 – Maintaining the metaphor

When a document is displayed with scrollbars, the metaphor is that the window is a viewport onto the entire document, only a portion of which is visible at the moment. The default behavior of a resize, however, is to maintain the origin at the upper left corner of the client area, which breaks the metaphor...

An insight into the Windows 95 startup sound

Doo, dudududingggggg.... ding.... ding... ding... In an interview with Joel Selvin at the San Francisco Chronicle, Brian Eno explains. Q: How did you come to compose "The Microsoft Sound"? A: The idea came up at the time when I was completely bereft of ideas. ...

Where is my program running from?

Another common question: "How do I find out where my program is? I want to be able to access support files in that same directory." Answer: GetModuleFileName(NULL...

Case mapping on Unicode is hard

Occasionally, I'm asked, "I have to identify strings that are identical, case-insensitively.  How do I do it?" The answer is, "Well, it depends. Whose case-mapping rules do you want to use?" Sometimes the reply is, "I want this to be language-independent." Now ...