Moving MFC Flash window bug

DLL Edition of the F-IN-BOX
skitz
Posts: 2
Joined: Mon Feb 26, 2007 2:18 am

Moving MFC Flash window bug

Postby skitz » Mon Feb 26, 2007 2:24 am

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Feb 26, 2007 6:54 am

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) };
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

skitz
Posts: 2
Joined: Mon Feb 26, 2007 2:18 am

Postby skitz » Tue Feb 27, 2007 11:18 pm

That worked perfectly.

Thank you for your prompt response!


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 16 guests

cron