* ecore_wince: force taskbar to be shown when ecore_wince shuts

down (in case the application is fullscreen when exiting)
   Reported by Lars Munch


SVN revision: 38649
This commit is contained in:
Vincent Torri 2009-01-19 18:54:24 +00:00
parent 621e507655
commit be55cc524a
1 changed files with 11 additions and 0 deletions

View File

@ -115,10 +115,21 @@ ecore_wince_init()
int
ecore_wince_shutdown()
{
HWND task_bar;
_ecore_wince_init_count--;
if (_ecore_wince_init_count > 0) return _ecore_wince_init_count;
if (!_ecore_wince_instance) return _ecore_wince_init_count;
/* force task bar to be shown (in case the application exits */
/* while being fullscreen) */
task_bar = FindWindow(L"HHTaskBar", NULL);
if (task_bar)
{
ShowWindow(task_bar, SW_SHOW);
EnableWindow(task_bar, TRUE);
}
UnregisterClass(ECORE_WINCE_WINDOW_CLASS, _ecore_wince_instance);
FreeLibrary(_ecore_wince_instance);
_ecore_wince_instance = NULL;