When writing documentation, one often has need to come up with a sample URL to illustrate some point or other. When you do, make sure the sample URL is under your control.
I remember a Windows beta that used the sample URL http://www.xxxxx.com/ in a dialog box. You can imagine where that actually goes.
This web site uses www.wallyworld.co...
Occasionally, I'll see a question that betrays a lack of understanding of difference between the positioned and non-positioned listview views. The question usually goes along the lines of "I inserted an item with LVM_INSERTITEM but it went to the end of the list instead of in the location I inserted it."
To understand what is going on, you ne...
Victorinox, the company authorized to make so-called Swiss Army merchandise, has run into a bit of a problem: Is there anything else you could possibly think of putting on a pocketknife for an outdoorsman? And even if you did, there's no room for it. The pocketknife has already reached the point where it's too unwieldy to carry around ...
If the program doesn't provide this information itself, Add/Remove Programs is forced to guess.
The problem is that there is no "obvious" way to map an entry in the Add/Remove Programs list to an actual program. Each entry in the list, for those who care about such things, comes from the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\...
A commenter asks why icon label have "those ugly color boxes" when there is a background image.
The answer: Because the alternative would be worse.
Imagine if there were no solid background between the text and the background image. You would end up with text against an unpredictable background, which doesn't help readability.
Take the ...
Last year, The Philip Morris Companies renamed itself to the warm-and-fuzzy sounding Altria Group. Gotta love the colorful abstract logo they've got. (Psst, editors of the Altria home page: It's "Whom We Fund". "Whom" with an "m".)
They claim the name comes from the Latin altus ("high") but that doesn't explain where the "r" comes from....
If you have a minimized window and want to know where it will go when you restore it, the GetWindowPlacement function will tell you. In particular, the tells you where the window would go if it were restored (as opposed to minimized or maximized).
One perhaps-non-obvious flag is WPF_RESTORETOMAXIMIZED. This flag indicates that the window...
If you are attending a presentation, you can tell whether the person at the lectern is a manager or a programmer by looking at their PowerPoint presentation.
If it's black-and-white, all-text, multimedia-free, and rarely has more than ten bullet points on a page, then the presenter is probably a programmer.
If it's colorful, with graphics,...