Welcome to MSDN Blogs Sign in | Join | Help
When we shipped Windows Vista, one of the really annoying UI annoyances with the volume control was that whenever you resized it, it would flicker.  To be more specific, the right side of the control would flicker – the rest didn’t flicker (which Read More...
I’ve always believed that the most frequently used multimedia API in winmm.dll was the PlaySound API.  However I recently was working with the results of some static analysis tools that were run on the Windows 7 codebase and I realized that in fact Read More...
On my previous post , Koro made the following comment : “Don't ever check windows versions.  Instead check for functionality being present or not." You can't always do that. Do I want to add a __try/__except to catch delay-load exceptions around Read More...
The trackbar common control is a strange beast. The trackbar can be oriented either horizontally or vertically. On LTR language machines, when the trackbar is horizontal, it works much as you’d expect it to: The minimum value of the trackbar is on the Read More...
Yesterday someone forwarded me an email from one of our DirectShow MVPs – he was having problems playing audio on his Windows Vista machine.   Fortunately David (the MVP) had done most of the diagnostic work – the symptoms he saw were that he was Read More...
About a year or so ago, I wrote a post that talked about the Windows shutdown experience.   A couple of the people reading the post asked for more details, and it turns out that the performance folks have just issued this paper which describes (in Read More...
I just fixed a bug in our UI that was caused by a misunderstanding of the API contract for the NM_CUSTOMDRAW handler for some of the common controls. On of October 3rd, 2008 The common control documentation for the NM_CUSTOMDRAW message says: lpNMCustomDraw Read More...
I just noticed this while working on a bug fix. We have some code that attempts to determine the size of a piece of text by calling DrawThemeText with the DT_CALCRECT format value. According to this page (as of 9/30/2008) the DT_CALCRECT option determines Read More...
Because the alternative is often much worse.   Several months ago, I got a bug report that if you launched mmsys.cpl then set the “Select” sound to a value, then cleared the sound, the reporters application would ding whenever you moved around their Read More...
Someone just wandered over to my office and he had noticed the following pattern in his code: PlaySound(NULL, NULL, SND_NODEFAULT); PlaySound( ".Default" , NULL, SND_SYSTEM | SND_ASYNC | SND_NODEFAULT); He was wondering why on earth the code Read More...
I just spent a half an hour debugging a heisenbug and thought I’d pass on what was happening.   I was running my unit tests for one of my features and they were reliably failing.  Unfortunately the instant I ran the test case under the debugger, Read More...
Yesterday I mentioned WM_PRINTCLIENT and how awesome it is when trying to strictly control the drawing of your application. Part of the reason it took over a week to change the drawing model is that there are a number of serious gotcha’s associated with Read More...
As I’ve mentioned before, I’ve been fuddling around doing UI programming recently – it’s a bit different from my usual work deep in the bowels of the <insert whatever subsystem Larry happens to be working on (redirector, audio stack, POP3 server, whatever)>. Read More...
I didn’t find this in the documentation for the static standard window so I figured I’d put it out in my blog in the hopes that someone else won’t get stuck on this problem. The Windows “static” control has a number of styles that control how the control Read More...
The other day, I wrote about measuring the dimensions of a piece of text using the DrawText API . My code worked just great when I initially tested it (obviously it’s a part of a larger chunk of code that does more complicated work).  The problem Read More...
More Posts Next page »
 
Page view tracker