How can I create Windowless Flash control in VC?

DLL Edition of the F-IN-BOX
madnik7
Posts: 6
Joined: Thu Aug 28, 2008 5:37 am

How can I create Windowless Flash control in VC?

Postby madnik7 » Thu Aug 28, 2008 5:45 am

Hi
I need to create windowless flash control. How can I do that?

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

Postby Softanics » Thu Aug 28, 2008 8:11 am

Thank you for your question.

First of all, please download the demo zip from http://f-in-box.com/dll/download.html
Then explore sample samples\MFC\Sample09_TransparentControl.

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

madnik7
Posts: 6
Joined: Thu Aug 28, 2008 5:37 am

It is not windowless

Postby madnik7 » Thu Aug 28, 2008 8:37 am

I did explore it carefully before.
It was not windowless. Flash OCX support windowless embedding. The sample you mentioned offer background drawing, good but the control not windowless. For example if I put a button under the flash, it will covered by swf.
Original Flash OCX support windowless when you set wmode to transparent at design time in dialog box.

I can't use (DEF_F_IN_BOX__PREPAINT_STAGE) because under my flash control is complicated drawing control that I could not simulate it in (DEF_F_IN_BOX__PREPAINT_STAGE.

I wish you offer me a way to create flash control in real windowless.

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

Re: It is not windowless

Postby Softanics » Thu Aug 28, 2008 8:48 am

madnik7 wrote:It was not windowless. Flash OCX support windowless embedding.


But Windows doesn't support it.

Some frameworks support windowless controls, for example Delphi / Builder C++, and f-in-box provides windowless f-in-box control for Delphi / Builder C++. Unfortunaly, VC++ doesn't support windowless controls, so we can only emulate it.

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

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

madnik7
Posts: 6
Joined: Thu Aug 28, 2008 5:37 am

VC++ support windowless

Postby madnik7 » Thu Aug 28, 2008 11:03 am

Hi again
VC++ support windowless activeX.
I did it with original Flash.ocx at runtime and aslo you can do it easily by placing Shockwave Flash object in DialogBox and set wmode to transparent then flash object will be windows less mode.
So will you support windowless creation for VC++.

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

Postby Softanics » Thu Aug 28, 2008 2:02 pm

I created a simple project, I added an EditBox and a Flash ActiveX (wmode = Transparent). The result is the following:

Image

As you can see, the Flash is not painting over the EditBox.

Please show me how I can use transparent mode in VC++, how to make a Flash control painting over windows controls as a transparent control? If you can show me, we are ready to improve f-in-box.

Thank you very much.
Best regards, Artem A. Razin,

F-IN-BOX support

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

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

Postby Softanics » Thu Aug 28, 2008 2:04 pm

You're right, MFC supports windowless ActiveXs, but this support is not full. What MFC provides, what f-in-box doesn't provide?

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

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

madnik7
Posts: 6
Joined: Thu Aug 28, 2008 5:37 am

What MFC provides, what f-in-box doesn't provide?

Postby madnik7 » Fri Aug 29, 2008 10:17 am

What MFC provides, what f-in-box doesn't provide?
what you mean by that?
MFC provide some windowless creation and f-in-box doesn't.

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

Re: What MFC provides, what f-in-box doesn't provide?

Postby Softanics » Fri Aug 29, 2008 6:32 pm

madnik7 wrote:What MFC provides, what f-in-box doesn't provide?
what you mean by that?
MFC provide some windowless creation and f-in-box doesn't.


I mean: what features that MFC provides is not supported by f-in-box?

Yes, MFC can create a windowless flash control, but it always placed under any controls that have HWND.

You wrote:

I can't use (DEF_F_IN_BOX__PREPAINT_STAGE) because under my flash control is complicated drawing control that I could not simulate it in (DEF_F_IN_BOX__PREPAINT_STAGE.


This complicated drawing control is also windowless?

If it's not windowless, MFC is not able to place a windowless flash control over a window control.

If it's windowless, you can call the drawing function of this control in DEF_F_IN_BOX__PREPAINT_STAGE handler, right?

May be you can upload anywhere a screenshot that shows how MFC windowless flash control is placed (with semitransparent effect) over another your control (that is complicated drawing control)? It would be very useful to understand what exactly you can do with MFC.

Thank you in advance.
Best regards, Artem A. Razin,

F-IN-BOX support

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

madnik7
Posts: 6
Joined: Thu Aug 28, 2008 5:37 am

I will solve it with onpaint technique

Postby madnik7 » Fri Aug 29, 2008 6:46 pm

Hi dear
My complex control is also windowless control. anyway I try to correct my problem with your provided OnPaint technique (it is hard but i can do that).
Very Thanks for your support.
Best Wish


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 10 guests

cron