FPCS_ATTACH_TO_PARENT_INTERNAL

DLL Edition of the F-IN-BOX
asdw
Posts: 6
Joined: Tue May 15, 2012 3:04 pm

FPCS_ATTACH_TO_PARENT_INTERNAL

Postby asdw » Fri May 18, 2012 8:47 am

Hello,

can you explain what does the FPCS_ATTACH_TO_PARENT_INTERNAL flag when added to the flash window style?

This helps to forward mouse messages correctly to the flash window (based on the OpenGL sample, but i redraw flash content with GDI+ in my main window), but the main window (and the flash window too) constantly gets WM_MOUSEMOVE messages, without moving the mouse, slowing down the whole app.

If i remove the FPCS_ATTACH_TO_PARENT_INTERNAL flag from the flash window style, no WM_MOUSEMOVEs, but the input behaves oddly (sometimes gets the mouse input, sometimes not).

In the f-in-box header it defines 0x00000008L, but this isn't a standard window flag, isn't it? :)

Thanks!

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

Postby Softanics » Mon May 21, 2012 3:46 pm

Hello,

We added this flag, yeah...

Actually, we tested idea of attaching flash activex to a window. I don't think that it's great idea to use this flag now as it's not documented.

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

asdw
Posts: 6
Joined: Tue May 15, 2012 3:04 pm

Postby asdw » Thu May 24, 2012 10:36 am

Is there (or will be) any solution for this problem?

My app. needs to "redraw" the flash's picture and interacts with it (like the DX/OGL samples, but in 2d, and with interactions). Now I just pass forward the mouse and keyboard events to the flash window, but this is not perfect, as i mentioned in my first post.
After this i managed to get working this in another way (mouse clicks reach the flash window, always) by moving the (hidden) flash window to the coordinate where the mouse event comes from (so the xy coords matches in both window's client area). The problem is that this window moves (happens on mousemove too, not just mouse up/down) slow down the application.

Seems like there is no win-win solution here. :?

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

Postby Softanics » Thu May 24, 2012 1:26 pm

Hello,

Have you read this topic:
http://www.f-in-box.com/forum/viewtopic.php?t=325

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

asdw
Posts: 6
Joined: Tue May 15, 2012 3:04 pm

Postby asdw » Thu May 24, 2012 2:53 pm

Yes, i did.
But the solution (or workaround) mentioned there not working here.


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 17 guests

cron