Page 1 of 1

Moving MFC Flash window bug

Posted: Mon Feb 26, 2007 2:24 am
by skitz
Hi there,

I've been experimenting with the F-In-Box demo, and theres one problem I'm having with Sample 4 'Translucency'.

When I click and drag the window around, if I move the mouse too fast, the window just disappears. This is especially easy to reproduce by clicking near the edge of the flash movie, and dragging the cursor off the edge relatively quickly.

Is this fixable? I thought it might've been my code but the same thing happens with the Sample4 binary that I downloaded.

Thanks,
- Andrew

Posted: Mon Feb 26, 2007 6:54 am
by Softanics
Thank you for your question.

Yes, I see the same problem. I've fixed it by replacing:

Code: Select all

POINT pt = { LOWORD(lParam), HIWORD(lParam) };


with

Code: Select all

POINT pt = { (int)(short)LOWORD(lParam), (int)(short)HIWORD(lParam) };

Posted: Tue Feb 27, 2007 11:18 pm
by skitz
That worked perfectly.

Thank you for your prompt response!