Showing archive results for 2003

Oct 16, 2003
Post comments count0
Post likes count0

Scrollbars redux: Part 12

Raymond Chen

Reader Jeff Miller added Word-style scroll tips to our sample scrollbar program. Here's how he did it: A tracking tooltip is used to display the scroll tip because we don't want the tooltip to do automatic positioning or automatic show/hide. When a tracking scroll occurs (), we ...

Code
Oct 16, 2003
Post comments count0
Post likes count0

The much-misunderstood "nop" action

Raymond Chen

Last month, the printers were reconfigured in our building and we got an announcement that went like this: Subject: Printer/Copier Reconfiguration Microsoft Digital Campus Program Action Required blah blah blah printers are being reconfigured blah blah blah ...

Non-Computer
Oct 15, 2003
Post comments count0
Post likes count0

Murphy's law for school

Raymond Chen

If you know the answer to every question but one, the teacher will call on you to answer that one. I'm learning this rule all over again.

Non-Computer
Oct 14, 2003
Post comments count0
Post likes count0

Why don't notification icons get a message when the user clicks the "X" button?

Raymond Chen

If such a notification were generated, ill-behaved programs would just react to a click on the balloon's "X" button with an annoying follow-up dialog like, "Are you sure you want to ignore my wonderful message?" So there was a conscious decision not to give them the chance. In the Before Time...

History
Oct 13, 2003
Post comments count0
Post likes count0

Why is there no WM_MOUSEENTER message?

Raymond Chen

There is a message. Why isn't there a message? Because you can easily figure that out for yourself. When you receive a message, set a flag that says, "The mouse is outside the window." When you receive a message and the flag is set, then the mouse has entered the window. (And cle...

Code
Oct 10, 2003
Post comments count0
Post likes count0

Why doesn't the clock in the taskbar display seconds?

Raymond Chen

Early beta versions of the taskbar clock did display seconds, and it even blinked the colon like some clocks do. But we had to remove it. Why? Because that blinking colon and the constantly-updating time were killing our benchmark numbers. On machines with only 4...

History
Oct 9, 2003
Post comments count0
Post likes count0

Other uses for bitmap brushes

Raymond Chen

Bitmap brushes used to be these little 8x8 monochrome patterns that you could use for hatching and maybe little houndstooth patterns if you were really crazy. But you can do better. CreatePatternBrush lets you pass in any old bitmap - even a huge one, and it will create a brush from it. The bi...

Code
Oct 8, 2003
Post comments count0
Post likes count0

In Explorer, you can right-click the icon in the caption

Raymond Chen

In Explorer, you can right-click the icon in the caption to get the context menu for the folder you are viewing. (Very handy for "Search" or "Command Prompt Here".) Apparently not enough people realize this. In Windows 95, we tried to make it so most icons on the screen did something interesting when you right-clicked them.

Tips/Support