redraw issue

DLL Edition of the F-IN-BOX
ericb_

redraw issue

Postby ericb_ » Thu Apr 07, 2005 11:10 pm

There is a redraw issue when the flash control moves inside another app. specifically, in my app, I must manually invalidate the "internal" flash window, like so:

HWND hWndFlashExternal = ::GetWindow(hWndPlayer, GW_CHILD);
HWND hWndFlashInternal = ::GetWindow(hWndFlashExternal, GW_CHILD);
::InvalidateRgn(hWndFlashInternal, NULL, TRUE);

If I don't do this, it DOES NOT redraw properly! This of course is somewhat silly, since if the control resizes it should redraw properly.

Seeing as I have purchased the source code, I see your implementation of CFlashPlayerControlWindow::OnSize, which resizes the child control, then calls CFlashPlayerControlContainer::OnSize. In there you use LockWindowUpdate(). Can I ask why? Could this cause problems?

Also, kudos for your custom LoadLibrary implementation. That's some impressive low level work.

Regards,

Eric Bellotti
Summit Tech

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

Postby Softanics » Tue Apr 12, 2005 9:07 am

It is seems you can remove LockWindowUpdate() calling from the code.
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 9 guests

cron