From: Enlightenment S. <no-...@en...> - 2009-04-29 17:51:08
|
Log: fix the borderless_set function by removing the frame around the window Author: caro Date: 2009-04-29 10:50:44 -0700 (Wed, 29 Apr 2009) New Revision: 40462 Modified: trunk/ecore/src/lib/ecore_win32/ecore_win32_window.c Modified: trunk/ecore/src/lib/ecore_win32/ecore_win32_window.c =================================================================== --- trunk/ecore/src/lib/ecore_win32/ecore_win32_window.c 2009-04-29 15:39:00 UTC (rev 40461) +++ trunk/ecore/src/lib/ecore_win32/ecore_win32_window.c 2009-04-29 17:50:44 UTC (rev 40462) @@ -734,7 +734,7 @@ return; } SetLastError(0); - if (!SetWindowLongPtr(w, GWL_STYLE, style & ~WS_CAPTION) && (GetLastError() != 0)) + if (!SetWindowLongPtr(w, GWL_STYLE, style & ~(WS_CAPTION | WS_THICKFRAME)) && (GetLastError() != 0)) { EINA_ERROR_PERR("SetWindowLongPtr() failed\n"); return; @@ -747,7 +747,7 @@ EINA_ERROR_PERR("GetWindowRect() failed\n"); return; } - style |= WS_CAPTION; + style |= WS_CAPTION | WS_THICKFRAME; if (!AdjustWindowRect (&rect, style, FALSE)) { EINA_ERROR_PERR("AdjustWindowRect() failed\n"); |