Posts by this author

Apr 28, 2014
Post comments count0
Post likes count0

Showing a balloon tip at a specific position, then removing it

Today's Little Program shows a balloon tip at a specific position, then manually removes it. Start with our scratch program and make these changes: When our main window is created, we also create a balloon-style tooltip and add a tracking tool. Normally, the tooltip control appears and disappears automatically, at a position of the tooltip's ...

Code
Apr 25, 2014
Post comments count0
Post likes count0

A discovered quirk is just few steps away from becoming a feature

Commenter Cherry wonders who invented all those strange syntaxes, like to show all environment variables, including the hidden ones. An interesting historical note is the origin of the convention in unix that files whose names begin with a dot are hidden by default (here's the relevant portion). That article highlights how a discovered quirk ...

Other
Apr 24, 2014
Post comments count0
Post likes count0

I thought you could use SWP_FRAMECHANGED to force a control to recalculate its properties after a change in styles

Simon Cooke dug back into his memory and asked, "Doesn't calling with cause a recreate and re-apply of the styles?" The flag does not recreate anything, but it does reapply the styles, as far as it knows. Recall that the bits in the window style break into two parts. There are the styles managed by the window manager, which are in the upper ...

Code
Apr 23, 2014
Post comments count0
Post likes count0

How do I programmatically create folders like My Pictures if they were manually deleted?

A corporate customer had a problem with their employees accidentally deleting folders like Videos and Pictures and are looking for a way to restore them, short of blowing away the entire user profile and starting over. They found some techniques on the Internet but they don't always work consistently or completely. What is the recommended way of r...

Code
Apr 22, 2014
Post comments count0
Post likes count0

Le Chatelier's Principle in action: Administrative overrides

Today we have another example of Le Chatelier's Principle as interpreted by John Gall: Every system resists its proper functioning. There was a video card manufacturer which was using the key so that they could inject their DLL into every process. I have no idea why. Perhaps to get a nice bonus. In Windows Vista, the registry key was deactiv...

Other
Apr 21, 2014
Post comments count0
Post likes count0

How can I get information about the items in the Recycle Bin from script?

Today we'll do a scripting version of an old C++ program: Printing information about the items in the Recycle Bin. (How you wish to act on the information is up to you.) This is a pattern we've seen a lot. Bind to a folder, enumerate its contents, extract properties. Wow, that was way easier than doing it in C++! Just for fun, I'll do it ...

Code
Apr 18, 2014
Post comments count0
Post likes count0

Raymond's house rules for Easter Egg Hunts

One of my colleagues frustrates his family by hiding the eggs for the annual Egg Hunt way too well. "Apparently, drawers and freezers are out of bounds in the traditional egg hunt." Here are my house rules for Easter Egg Hunts: Personally, I like to hide eggs in plain sight. It's surprising how long it can take somebody to find a yellow egg res...

Non-Computer
Apr 18, 2014
Post comments count0
Post likes count0

How do I set a breakpoint on a function whose name contains spaces or other special characters?

If you use one of the command line debuggers based on the Debugger Engine, you can set a breakpoint on a function whose name contains spaces or other special characters by quoting the symbol name. The trick here is that you do not quote the entire string; you quote only the symbol name. Note that the quotation marks do not go around the part....

Other
Apr 17, 2014
Post comments count0
Post likes count0

How can I get the Windows 8 touch keyboard to display autocomplete suggestions like the Bing app?

A customer observed that if you use the Windows 8 Bing app with the touch keyboard, the top of the touch keyboard includes autocomplete suggestions for quick access. They wanted to know how to enable this in their own application. In the illustration below, it's the two boxes immediately above the keyboard with the words "aol" and "amazon". T...

Code
Apr 16, 2014
Post comments count0
Post likes count0

There is no complete list of all notifications balloon tips in Windows

A customer wanted a complete list of all notifications balloon tips in Windows. There is no such list. Each component is responsible for its own balloon tips and is not required to submit their list of balloon tips to any central authority for cataloging. In order to create such a list, somebody would have to go contact every component team and as...

Tips/Support