Showing archive results for 2004

Oct 19, 2004
Post comments count0
Post likes count0

The compatibility constraints of even your internal bookkeeping

Raymond Chen

The Listview control when placed in report mode has a child header control which it uses to display column header titles. This header control is the property of the listview, but the listview is kind enough to let you retrieve the handle to that header control. And some programs abuse that kindness. It so happens that the original listview...

History
Oct 18, 2004
Post comments count0
Post likes count0

Implementing higher-order clicks

Raymond Chen

Another question people ask is "How do I do triple-click or higher?" Once you see the algorithm for double-clicks, extending it to higher order clicks should be fairly natural. The first thing you probably should do is to remove the CS_DBLCLKS style from your class because you want to do multiple-click management manually. Next, you can simply...

Code
Oct 15, 2004
Post comments count0
Post likes count0

Logical consequences of the way Windows converts single-clicks into double-clicks

Raymond Chen

First, I'm going to refer you to the MSDN documentation on mouse clicks, since that's the starting point. I'm going to assume that you know the mechanics of how single-clicks are converted to double-clicks. Okay, now that you've read it, let's talk about some logical consequences of that article and what it means for the way you design your use...

Code
Oct 14, 2004
Post comments count0
Post likes count0

Little facts you didn’t know about volcanoes

Raymond Chen

Molten rock makes volcano glow red, reports CNN. Amazing the things you can learn from the news. Last year we learned that concrete is stronger once it has hardened.

Non-ComputerNews flash
Oct 14, 2004
Post comments count0
Post likes count0

The procedure entry point SHCreateThreadRef could not be located…

Raymond Chen

Some people smarter than me have been working on this problem, and here's what they figured out. First, I'll just reprint their analysis (so that people with the problem and are searching for the solution can find it), and then we can discuss it. Update (18 October 2005): The official version of this document is now available. Please use that ...

Tips/Support
Oct 13, 2004
Post comments count0
Post likes count0

Dispatching items collected from the suggestion box

Raymond Chen

Okay, I got around to digging through the suggestion box, and today I'm going to dispatch the items that don't require much thought but seemed worthy of reply to some degree. You won't learn much of anything today. Other entries require more thought. Each non-code entry takes me a half hour or so, more if I have to do research (if somebody as...

Other
Oct 12, 2004
Post comments count0
Post likes count0

People lie on surveys and focus groups, often unwittingly

Raymond Chen

Philip Su's discussion of early versions of Microsoft Money triggered a topic that had been sitting in the back of my mind for a while: That people lie on surveys and focus groups, often unwittingly. I can think of three types of lies offhand. (I'm not counting malicious lying; that is, intentional lying for the purpose of undermining the results...

Other
Oct 11, 2004
Post comments count0
Post likes count1

What’s the atom returned by RegisterClass useful for?

Raymond Chen

The and functions return an What is that good for? The names of all registered window classes is kept in an atom table internal to USER32. The value returned by the class registration functions is that atom. You can also retrieve the atom for a window class by asking a window of that class for its class atom via . The atom can be convert...

History
Oct 8, 2004
Post comments count0
Post likes count0

Cooking for engineers

Raymond Chen

All geeks who enjoy cooking (and who have cable television) worship Alton Brown's program Good Eats. It's the cooking show for engineers. And recently I discovered a cooking blog that is designed for engineers, named, not surprisingly, Cooking for Engineers. Marvel at the elegance and beauty of the recipe diagrams. I have no idea whether the dis...

Non-Computer
Oct 8, 2004
Post comments count0
Post likes count0

Why is there a separate GetSystemDirectory function?

Raymond Chen

If the system directory is always , why is there a special function to get it? Because it wasn't always that. For 16-bit programs on Windows NT, the system directory is . That's also the name of the system directory for Windows 95-based systems and all the 16-bit versions of Windows. But even in the 16-bit world, if it was always...

History