WM_LBUTTONUP received after double-click in "open file" dialog

Hi folks,

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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MSG msg;


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's normal. Common dialog box closes on WM_LBUTTONDBLCLK, and WM_LBUTTONUP goes to your window.

gothickAuthor Commented:
Thanks; although it didn't help him solve his problem, it was good to know it was normal, and I think that your answer was the best that I could have hoped for without finding a TCL guru.

Sorry it's taken so long to grade, but I've just started a new contract, so I'm a bit busy at the moment!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.