A friend of mine is having difficulties with a rogue WM_LBUTTONUP being sent to his window when using the open file dialog box (he's using TCL, but I've reproduced it with a straight GetOpenFileName() call and with the CFileDialog MFC class.)
Everything's fine unless you choose a file in the dialog by double-clicking on a file in the list. If you double-click, the file is chosen correctly, but the window behind the open file dialog gets a WM_LBUTTONUP message -- presumably from the last LBUTTONUP event of the double click.
Is this normal? Is there any way to make the open file dialog "eat" the stray message? Any other suggestions? I don't know much about this bit of Windows, myself, so all help gratefully received.