* ecore_wince: force taskbar to be shown when ecore_wince shuts
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 19 Jan 2009 18:54:24 +0000 (18:54 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 19 Jan 2009 18:54:24 +0000 (18:54 +0000)
   down (in case the application is fullscreen when exiting)
   Reported by Lars Munch

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@38649 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_wince/ecore_wince.c

index fe689bf..bb84171 100644 (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;