ESC key does not exit fullscreen
Posted: 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...
(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
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,
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,