The Old New Thing

A hidden performance cost of regional windows

Regional windows are neat, but they come at a cost. Most of the cost you can see directly. For example, constantly changing the region clearly generates a cost since you have to sit there and generate new regions all the time. One question that came up on an internal performance alias highlights one of the hidden costs of regional windows: ...
Comments are closed.0 0
Code

Did you know that Baltimore has a Rumor Control Center?

A little-known department in the city of Baltimore is the Rumor Control Center, whose purpose is to squash rumors before they get out of hand. Scott Simon talked with supervisor Tom Saunders on cash rewards for blue-eyed cicadas and other rumors he's had to handle in the past...

Speeding up adding items to a combobox or listbox

Just a little tip: If you're going to be adding a lot of items to a listbox or combobox, there are a few little things you can do to improve the performance significantly. (Note: The improvements work only if you have a lot of items, like hundreds. Of course, the usability of a listbox with a hundred items is questionable, but I'm assuming ...
Comments are closed.0 0
Code

What are these directories called 0409 and 1033?

A reader asked, I was wondering why it's common for some Microsoft products to have a directory called "1033" within it's program directory installation location? What does it mean? This reader was probably from the United States, because 1033 is the locale identifier for "English (United States)", whose hexadecimal value is 0x0409...

Let there be a grand clubhouse feast!

Kenny Mayne is one of the regular anchors for ESPN SportsCenter and for some reason I find this particular home run call hilarious: I am king of the diamond! Let there be a grand clubhouse feast! [WAV] Bring me the finest meats and cheeses throughout the land! — From The SportsCenter Altar multimedia download center. Here...

When can a thread receive window messages?

Everybody who has messed with window messaging knows that GetMessage and PeekMessage retrieve queued messages, which are dispatched to windows via DispatchMessage. Most people also know that GetMessage and PeekMessage will also dispatch nonqueued messages. (All pending nonqueued messages are dispatched, then the first queued message is ...
Comments are closed.0 0
Code

The suburbs make you fat, more researchers conclude

Two legs good - four wheels bad. (With apologies to George Orwell.) Researchers link increase car use with obesity. Each hour spent in a car was associated with a 6 percent increase in the likelihood of obesity and each half-mile walked per day reduced those odds by nearly 5 percent, the researchers found. A study last ...

Do not underestimate the power of the game Deer Hunter

During the run-up to Windows XP Service Pack 2 Beta in December of last year, there was a list of five bugs that the release management team decided were so critical that they were going to slip the beta until those bugs got fixed. The third bug on the list: Deer Hunter 4 won't run. Deer Hunter has the power to stop a beta...