Question about CFPCWnd::OnPaint(...)

DLL Edition of the F-IN-BOX
twright
Posts: 2
Joined: Mon Jun 30, 2008 5:37 pm

Question about CFPCWnd::OnPaint(...)

Postby twright » Mon Jun 30, 2008 5:43 pm

I'm using a windowless implementation. I have a situation where the WM_PAINT messages occassionally stops getting generated so that CFPCWnd::OnPaint( ) never gets called and the sfw movie appears like its not playing. For a windowless situation, how do the WM_PAINT messages get generated? Is the Flash ActiveX control causing them to be generated or is the F-In-Box code doing it?

Thanks for any help with this.

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

Re: Question about CFPCWnd::OnPaint(...)

Postby Softanics » Mon Jun 30, 2008 6:12 pm

Thank you for your question.

Is it possible to reproduce the behavior?

twright wrote:For a windowless situation, how do the WM_PAINT messages get generated?


Even when a flash movie is in the transparent mode, there is a window (HWND).

When a movie needs to update, it calls:
InvalidateRect(LPCRECT pRect, BOOL fErase);
or
InvalidateRgn(HRGN hRGN, BOOL fErase);

See implementation of this methods. They call InvalidateRect, which causes WM_PAINT is sending to the window and UpdateLayeredWindow is called (as far as I understand, you write about case when WS_EX_LAYERED used, right?).

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


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 21 guests

cron