The Old New Thing

Determining whether your window is covered
Determining whether your window is covered
The method described in the previous coding blog entry works great if you are using the window visibility state to control painting, since you're using the paint system itself to do the heavy lifting for you. To obtain this information outside of the paint loop, use GetDC and GetClipBox...
Comments are closed.0Code
Even the trees are falling for the media's lies
Even the trees are falling for the media's lies
The White House is doing some renovating of its own (NYT, free registration required), in order to refurbish a section of the lawn that is used by television reporters so they can stand there with a nice picture of the White House behind them. But that's not why I found this story interesting. Go about halfway down the article: "The light...
Suburbs make you fat, researchers conclude
Suburbs make you fat, researchers conclude
Researchers have determined that living in the suburbs makes you fat. That and all the super-sized value meals. Speaking of super-sizing your value meal: people are tearing down their McMansions in order to build... a bigger McMansion (WSJ, paid registration required, sorry...
The default answer to every dialog box is "Cancel"
The default answer to every dialog box is "Cancel"
The problem with displaying UI is that people will take every opportunity to ignore it. This story of how people deal with virus warning dialogs (via Don Browning) is a template for how users treat any unexpected dialog: They try to get rid of it. We see this time and time again...
Comments are closed.0Other
Setup could not verify integrity of file
Setup could not verify integrity of file
When you try to install a patch, you may get the error message "Setup could not verify integrity of file. Make sure the cryptographic service is running." This typically means that the signature catalog has been corrupted. There was a patch to fix this problem, but of course if you haven'...
Painting only when your window is visible on the screen
Painting only when your window is visible on the screen
Sometimes you want to perform an activity, such as updating a status window, only as long as the window is not covered by another window. The easiest way to determine this is by not actually trying to determine it. For example, here's how the taskbar clock updates itself...
Comments are closed.0Code
Hardware backwards compatibility
Hardware backwards compatibility
Backwards compatibility applies not only to software. It also applies to hardware. And when hardware goes bad, the software usually takes the blame. The HLT instruction tells the CPU to shut itself down until the next hardware interrupt. This is a big win on laptops since it reduces power ...
What are those little overlay icons?
What are those little overlay icons?
Windows XP ships with a number of icon overlays. The black clock is particularly baffling because you sometimes see it even if your system is not equipped with Hierarchical Storage Management. When this happens, it's because some program (...