ESC key does not exit fullscreen

DLL Edition of the F-IN-BOX
Mandel
Posts: 2
Joined: Thu Jun 28, 2007 2:10 pm

ESC key does not exit fullscreen

Postby Mandel » Mon Jan 05, 2009 1:21 pm

Hello, I use a registered version of f-in-box in a custom DLL used to create several transparent windows displaying SWFs.

The problem is: fullscreen does work fine, but when in fullscreen no keyboard event is received either by flash or by the window itself.

Of course this is an issue since a big "PRESS ESC TO EXIT FULLSCREEN" appears when switching mode and there is apparently no way to avoid it...


Code: Select all

LRESULT CTransparentFlashPlayerControlWnd::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
...
   switch (message)
   {
      case WM_KEYUP:   
      {
         if (wParam == VK_ESCAPE)
         {
            // never reached in fullscreen



(in fact, no keyboard event at all are catched in fullscreen mode)

F.Y.I, I create a main window (for handling keybord events, for instance) and a child window

Code: Select all

HWND hCtrlWnd = CreateWindow(...);

...

HWND hFlashWnd = CreateWindowEx(WS_EX_LAYERED | WS_EX_APPWINDOW,
      (LPCTSTR)FPC_GetClassAtom(g_hFPC),
      (LPCWSTR)szName, // gruge...
      WS_POPUP | WS_VISIBLE,
      rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
      hCtrlWnd,
      NULL,
      NULL,
      NULL);


Neither parent nor child window receives keybord events in fullscreen.

---

Note that if I use the same SWF with the "transparent" MFC sample, ESC key works in fullscreen - but then mouse clicks are not received by flash (only double-clicks) etc.

Any idea ?

Thanks in advance,

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

Postby Softanics » Mon Jan 05, 2009 1:31 pm

Thank you for your question.

Is it possible to send me a sample to test? I hope, yes. My email is support (at) f-in-box.com

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

thebigc1974
Posts: 1
Joined: Thu Aug 05, 2010 12:34 pm

Postby thebigc1974 » Thu Aug 05, 2010 12:43 pm

Hi,

I have the same problem in a QT-Framework which uses f-in-box (dll).
The Event WM_KEYDOWN->VK_ESCAPE only comes when flash ist NOT selected, no matter if fullscreen or in windowmode. Even if I click on the windowborder of the QT-Widget which hosts f-in-box, the event is not catched. When I select another QT-Window the event is there again...

I try now to catch the Key-Events in Flash itself and pass them with External api to the framework. But thatÒ‘s a workaround I woul like to avoid.

Is there any chance to still get keyevents when the flash is selected?

regards
chris


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 13 guests