Ecore_Evas *ee;
Ecore_Win32_Event_Mouse_In *e;
- ECORE_EVAS_MSG_INFO("mouse in\n");
+ ECORE_EVAS_MSG_INFO("mouse in");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Mouse_Out *e;
- ECORE_EVAS_MSG_INFO("mouse out\n");
+ ECORE_EVAS_MSG_INFO("mouse out");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Window_Damage *e;
- ECORE_EVAS_MSG_INFO("window damage\n");
+ ECORE_EVAS_MSG_INFO("window damage");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Window_Destroy *e;
- ECORE_EVAS_MSG_INFO("window destroy\n");
+ ECORE_EVAS_MSG_INFO("window destroy");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Window_Show *e;
- ECORE_EVAS_MSG_INFO("window show\n");
+ ECORE_EVAS_MSG_INFO("window show");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Window_Hide *e;
- ECORE_EVAS_MSG_INFO("window hide\n");
+ ECORE_EVAS_MSG_INFO("window hide");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Window_Configure *e;
- ECORE_EVAS_MSG_INFO("window configure\n");
+ ECORE_EVAS_MSG_INFO("window configure");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
Ecore_Evas *ee;
Ecore_Win32_Event_Window_Delete_Request *e;
- ECORE_EVAS_MSG_INFO("window delete request\n");
+ ECORE_EVAS_MSG_INFO("window delete request");
e = event;
ee = ecore_event_window_match((Ecore_Window)e->window);
static void
_ecore_evas_win32_free(Ecore_Evas *ee)
{
- ECORE_EVAS_MSG_INFO("ecore evas free\n");
+ ECORE_EVAS_MSG_INFO("ecore evas free");
ecore_win32_window_free((struct _Ecore_Win32_Window *)ee->prop.window);
ecore_event_window_unregister(ee->prop.window);
static void
_ecore_evas_win32_move(Ecore_Evas *ee, int x, int y)
{
- ECORE_EVAS_MSG_INFO("ecore evas move (%dx%d)\n", x, y);
+ ECORE_EVAS_MSG_INFO("ecore evas move (%dx%d)", x, y);
if ((x != ee->x) || (y != ee->y))
{
static void
_ecore_evas_win32_resize(Ecore_Evas *ee, int width, int height)
{
- ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d)\n", width, height);
+ ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d)", width, height);
if ((ee->w != width) || (ee->h != height))
{
static void
_ecore_evas_win32_move_resize(Ecore_Evas *ee, int x, int y, int width, int height)
{
- ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d %dx%d)\n", x, y, width, height);
+ ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d %dx%d)", x, y, width, height);
if ((ee->w != width) || (ee->h != height) || (x != ee->x) || (y != ee->y))
{
static void
_ecore_evas_win32_rotation_set(Ecore_Evas *ee, int rotation)
{
- ECORE_EVAS_MSG_INFO("ecore evas rotation: %s\n", rotation ? "yes" : "no");
+ ECORE_EVAS_MSG_INFO("ecore evas rotation: %s", rotation ? "yes" : "no");
if (ee->rotation == rotation) return;
static void
_ecore_evas_win32_show(Ecore_Evas *ee)
{
- ECORE_EVAS_MSG_INFO("ecore evas show\n");
+ ECORE_EVAS_MSG_INFO("ecore evas show");
ee->should_be_visible = 1;
if (ee->prop.avoid_damage)
static void
_ecore_evas_win32_hide(Ecore_Evas *ee)
{
- ECORE_EVAS_MSG_INFO("ecore evas hide\n");
+ ECORE_EVAS_MSG_INFO("ecore evas hide");
ecore_win32_window_hide((struct _Ecore_Win32_Window *)ee->prop.window);
ee->should_be_visible = 0;
static void
_ecore_evas_win32_raise(Ecore_Evas *ee)
{
- ECORE_EVAS_MSG_INFO("ecore evas raise\n");
+ ECORE_EVAS_MSG_INFO("ecore evas raise");
if (!ee->prop.fullscreen)
ecore_win32_window_raise((struct _Ecore_Win32_Window *)ee->prop.window);
static void
_ecore_evas_win32_lower(Ecore_Evas *ee)
{
- ECORE_EVAS_MSG_INFO("ecore evas lower\n");
+ ECORE_EVAS_MSG_INFO("ecore evas lower");
if (!ee->prop.fullscreen)
ecore_win32_window_lower((struct _Ecore_Win32_Window *)ee->prop.window);
static void
_ecore_evas_win32_activate(Ecore_Evas *ee)
{
- ECORE_EVAS_MSG_INFO("ecore evas activate\n");
+ ECORE_EVAS_MSG_INFO("ecore evas activate");
ecore_win32_window_focus_set((struct _Ecore_Win32_Window *)ee->prop.window);
}
static void
_ecore_evas_win32_title_set(Ecore_Evas *ee, const char *title)
{
- ECORE_EVAS_MSG_INFO("ecore evas title set\n");
+ ECORE_EVAS_MSG_INFO("ecore evas title set");
if (ee->prop.title) free(ee->prop.title);
ee->prop.title = NULL;
{
struct _Ecore_Win32_Window *window;
- ECORE_EVAS_MSG_INFO("ecore evas fullscreen set\n");
+ ECORE_EVAS_MSG_INFO("ecore evas fullscreen set");
if ((ee->engine.win32.state.fullscreen && on) ||
(!ee->engine.win32.state.fullscreen && !on))
return 0;
}
- ECORE_WIN32_MSG_INFO("initializing ecore_win32 (current count: %d)\n", _ecore_win32_init_count);
+ ECORE_WIN32_MSG_INFO("initializing ecore_win32 (current count: %d)", _ecore_win32_init_count);
if (_ecore_win32_init_count > 0)
{
_ecore_win32_instance = GetModuleHandle(NULL);
if (!_ecore_win32_instance)
{
- ECORE_WIN32_MSG_ERR("GetModuleHandle() failed\n");
+ ECORE_WIN32_MSG_ERR("GetModuleHandle() failed");
return 0;
}
if(!RegisterClass(&wc))
{
- ECORE_WIN32_MSG_ERR("RegisterClass() failed\n");
+ ECORE_WIN32_MSG_ERR("RegisterClass() failed");
FreeLibrary(_ecore_win32_instance);
return 0;
}
if (!ecore_win32_dnd_init())
{
- ECORE_WIN32_MSG_ERR("ecore_win32_dnd_init() failed\n");
+ ECORE_WIN32_MSG_ERR("ecore_win32_dnd_init() failed");
FreeLibrary(_ecore_win32_instance);
return 0;
}
int
ecore_win32_shutdown()
{
- ECORE_WIN32_MSG_INFO("shutting down ecore_win32 (current count: %d)\n", _ecore_win32_init_count);
+ ECORE_WIN32_MSG_INFO("shutting down ecore_win32 (current count: %d)", _ecore_win32_init_count);
_ecore_win32_init_count--;
if (_ecore_win32_init_count > 0) return _ecore_win32_init_count;
ecore_win32_dnd_shutdown();
if (!UnregisterClass(ECORE_WIN32_WINDOW_CLASS, _ecore_win32_instance))
{
- ECORE_WIN32_MSG_INFO("UnregisterClass() failed\n");
+ ECORE_WIN32_MSG_INFO("UnregisterClass() failed");
}
if (!FreeLibrary(_ecore_win32_instance))
{
- ECORE_WIN32_MSG_INFO("FreeLibrary() failed\n");
+ ECORE_WIN32_MSG_INFO("FreeLibrary() failed");
}
_ecore_win32_instance = NULL;
HDC dc;
int depth;
- ECORE_WIN32_MSG_INFO("getting screen depth\n");
+ ECORE_WIN32_MSG_INFO("getting screen depth");
dc = GetDC(NULL);
if (!dc)
{
- ECORE_WIN32_MSG_ERR("GetDC() failed\n");
+ ECORE_WIN32_MSG_ERR("GetDC() failed");
return 0;
}
depth = GetDeviceCaps(dc, BITSPIXEL);
if (!ReleaseDC(NULL, dc))
{
- ECORE_WIN32_MSG_ERR("ReleaseDC() failed (device context not released)\n");
+ ECORE_WIN32_MSG_ERR("ReleaseDC() failed (device context not released)");
}
return depth;
{
POINT pt;
- ECORE_WIN32_MSG_INFO("mouse in window\n");
+ ECORE_WIN32_MSG_INFO("mouse in window");
pt.x = GET_X_LPARAM(data_param);
pt.y = GET_Y_LPARAM(data_param);
}
else
{
- ECORE_WIN32_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetClientRect() failed");
}
_ecore_win32_event_handle_motion_notify(data);
int cursor_width;
int cursor_height;
- ECORE_WIN32_MSG_INFO("creating cursor\n");
+ ECORE_WIN32_MSG_INFO("creating cursor");
cursor_width = GetSystemMetrics(SM_CXCURSOR);
cursor_height = GetSystemMetrics(SM_CYCURSOR);
void
ecore_win32_cursor_free(Ecore_Win32_Cursor *cursor)
{
- ECORE_WIN32_MSG_INFO("destroying cursor\n");
+ ECORE_WIN32_MSG_INFO("destroying cursor");
DestroyCursor(cursor);
}
Ecore_Win32_Cursor *cursor = NULL;
const char *cursor_name;
- ECORE_WIN32_MSG_INFO("geting shape cursor\n");
+ ECORE_WIN32_MSG_INFO("geting shape cursor");
switch (shape)
{
int width;
int height;
- ECORE_WIN32_MSG_INFO("geting size cursor\n");
+ ECORE_WIN32_MSG_INFO("geting size cursor");
width = GetSystemMetrics(SM_CXCURSOR);
height = GetSystemMetrics(SM_CYCURSOR);
{
Ecore_Event_Key *e;
- ECORE_WIN32_MSG_INFO("key pressed\n");
+ ECORE_WIN32_MSG_INFO("key pressed");
e = (Ecore_Event_Key *)malloc(sizeof(Ecore_Event_Key));
if (!e) return;
{
Ecore_Event_Key *e;
- ECORE_WIN32_MSG_INFO("key released\n");
+ ECORE_WIN32_MSG_INFO("key released");
e = (Ecore_Event_Key *)calloc(1, sizeof(Ecore_Event_Key));
if (!e) return;
{
Ecore_Win32_Window *window;
- ECORE_WIN32_MSG_INFO("mouse button pressed\n");
+ ECORE_WIN32_MSG_INFO("mouse button pressed");
window = (Ecore_Win32_Window *)GetWindowLong(msg->window, GWL_USERDATA);
{
Ecore_Win32_Window *window;
- ECORE_WIN32_MSG_INFO("mouse button released\n");
+ ECORE_WIN32_MSG_INFO("mouse button released");
window = (void *)GetWindowLong(msg->window, GWL_USERDATA);
{
Ecore_Event_Mouse_Move *e;
- ECORE_WIN32_MSG_INFO("mouse moved\n");
+ ECORE_WIN32_MSG_INFO("mouse moved");
e = (Ecore_Event_Mouse_Move *)calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!e) return;
{
Ecore_Event_Mouse_Move *e;
- ECORE_WIN32_MSG_INFO("mouse in\n");
+ ECORE_WIN32_MSG_INFO("mouse in");
e = (Ecore_Event_Mouse_Move *)calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!e) return;
{
Ecore_Event_Mouse_Move *e;
- ECORE_WIN32_MSG_INFO("mouse out\n");
+ ECORE_WIN32_MSG_INFO("mouse out");
e = (Ecore_Event_Mouse_Move *)calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!e) return;
{
Ecore_Win32_Event_Window_Focus_In *e;
- ECORE_WIN32_MSG_INFO("focus in\n");
+ ECORE_WIN32_MSG_INFO("focus in");
e = (Ecore_Win32_Event_Window_Focus_In *)calloc(1, sizeof(Ecore_Win32_Event_Window_Focus_In));
if (!e) return;
{
Ecore_Win32_Event_Window_Focus_Out *e;
- ECORE_WIN32_MSG_INFO("focus out\n");
+ ECORE_WIN32_MSG_INFO("focus out");
e = (Ecore_Win32_Event_Window_Focus_Out *)calloc(1, sizeof(Ecore_Win32_Event_Window_Focus_Out));
if (!e) return;
{
Ecore_Win32_Event_Window_Damage *e;
- ECORE_WIN32_MSG_INFO("window expose\n");
+ ECORE_WIN32_MSG_INFO("window expose");
e = (Ecore_Win32_Event_Window_Damage *)calloc(1, sizeof(Ecore_Win32_Event_Window_Damage));
if (!e) return;
{
Ecore_Win32_Event_Window_Create *e;
- ECORE_WIN32_MSG_INFO("window create notify\n");
+ ECORE_WIN32_MSG_INFO("window create notify");
e = calloc(1, sizeof(Ecore_Win32_Event_Window_Create));
if (!e) return;
{
Ecore_Win32_Event_Window_Destroy *e;
- ECORE_WIN32_MSG_INFO("window destroy notify\n");
+ ECORE_WIN32_MSG_INFO("window destroy notify");
e = calloc(1, sizeof(Ecore_Win32_Event_Window_Destroy));
if (!e) return;
{
Ecore_Win32_Event_Window_Show *e;
- ECORE_WIN32_MSG_INFO("window map notify\n");
+ ECORE_WIN32_MSG_INFO("window map notify");
e = calloc(1, sizeof(Ecore_Win32_Event_Window_Show));
if (!e) return;
{
Ecore_Win32_Event_Window_Hide *e;
- ECORE_WIN32_MSG_INFO("window unmap notify\n");
+ ECORE_WIN32_MSG_INFO("window unmap notify");
e = calloc(1, sizeof(Ecore_Win32_Event_Window_Hide));
if (!e) return;
Ecore_Win32_Event_Window_Configure *e;
WINDOWPOS *window_pos;
- ECORE_WIN32_MSG_INFO("window configure notify\n");
+ ECORE_WIN32_MSG_INFO("window configure notify");
e = calloc(1, sizeof(Ecore_Win32_Event_Window_Configure));
if (!e) return;
RECT rect;
Ecore_Win32_Event_Window_Resize *e;
- ECORE_WIN32_MSG_INFO("window resize\n");
+ ECORE_WIN32_MSG_INFO("window resize");
if (!GetClientRect(msg->window, &rect))
return;
{
Ecore_Win32_Event_Window_Delete_Request *e;
- ECORE_WIN32_MSG_INFO("window delete request\n");
+ ECORE_WIN32_MSG_INFO("window delete request");
e = calloc(1, sizeof(Ecore_Win32_Event_Window_Delete_Request));
if (!e) return;
int width,
int height)
{
- ECORE_WIN32_MSG_INFO("creating window with border\n");
+ ECORE_WIN32_MSG_INFO("creating window with border");
return ecore_win32_window_internal_new(parent,
x, y,
int width,
int height)
{
- ECORE_WIN32_MSG_INFO("creating window without border\n");
+ ECORE_WIN32_MSG_INFO("creating window without border");
return ecore_win32_window_internal_new(parent,
x, y,
if (!window) return;
- ECORE_WIN32_MSG_INFO("destroying window\n");
+ ECORE_WIN32_MSG_INFO("destroying window");
if (wnd->shape.mask != NULL)
free(wnd->shape.mask);
if (!window) return;
- ECORE_WIN32_MSG_INFO("moving window (%dx%d)\n", x, y);
+ ECORE_WIN32_MSG_INFO("moving window (%dx%d)", x, y);
w = ((struct _Ecore_Win32_Window *)window)->window;
if (!GetWindowRect(w, &rect))
{
- ECORE_WIN32_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowRect() failed");
return;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WIN32_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("MoveWindow() failed");
}
}
if (!window) return;
- ECORE_WIN32_MSG_INFO("resizing window (%dx%d)\n", width, height);
+ ECORE_WIN32_MSG_INFO("resizing window (%dx%d)", width, height);
w = (struct _Ecore_Win32_Window *)window;
if (!GetWindowRect(w->window, &rect))
{
- ECORE_WIN32_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowRect() failed");
return;
}
rect.bottom = height;
if (!(style = GetWindowLong(w->window, GWL_STYLE)))
{
- ECORE_WIN32_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowLong() failed");
return;
}
if (!AdjustWindowRect(&rect, style, FALSE))
{
- ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed");
return;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WIN32_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("MoveWindow() failed");
}
}
if (!window) return;
- ECORE_WIN32_MSG_INFO("moving and resizing window (%dx%d %dx%d)\n", x, y, width, height);
+ ECORE_WIN32_MSG_INFO("moving and resizing window (%dx%d %dx%d)", x, y, width, height);
w = ((struct _Ecore_Win32_Window *)window);
rect.left = 0;
rect.bottom = height;
if (!(style = GetWindowLong(w->window, GWL_STYLE)))
{
- ECORE_WIN32_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowLong() failed");
return;
}
if (!AdjustWindowRect(&rect, style, FALSE))
{
- ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed");
return;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WIN32_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("MoveWindow() failed");
}
}
int w;
int h;
- ECORE_WIN32_MSG_INFO("getting window geometry\n");
+ ECORE_WIN32_MSG_INFO("getting window geometry");
if (!window)
{
if (!GetClientRect(((struct _Ecore_Win32_Window *)window)->window,
&rect))
{
- ECORE_WIN32_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetClientRect() failed");
if (x) *x = 0;
if (y) *y = 0;
if (!GetWindowRect(((struct _Ecore_Win32_Window *)window)->window,
&rect))
{
- ECORE_WIN32_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowRect() failed");
if (x) *x = 0;
if (y) *y = 0;
{
RECT rect;
- ECORE_WIN32_MSG_INFO("getting window size\n");
+ ECORE_WIN32_MSG_INFO("getting window size");
if (!window)
{
if (!GetClientRect(((struct _Ecore_Win32_Window *)window)->window,
&rect))
{
- ECORE_WIN32_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetClientRect() failed");
if (width) *width = 0;
if (height) *height = 0;
GetWindowLong(wnd->window, GWL_EXSTYLE) & (~WS_EX_LAYERED)) &&
(GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
if (!RedrawWindow(wnd->window, NULL, NULL,
RDW_ERASE | RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN))
{
- ECORE_WIN32_MSG_ERR("RedrawWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("RedrawWindow() failed");
return;
}
#endif
else
if (!SetWindowRgn(wnd->window, NULL, TRUE))
{
- ECORE_WIN32_MSG_ERR("SetWindowRgn() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowRgn() failed");
}
return;
}
GetWindowLong(wnd->window, GWL_EXSTYLE) | WS_EX_LAYERED) &&
(GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
wnd->shape.layered = 1;
if (!(rgn = CreateRectRgn(0, 0, 0, 0)))
{
- ECORE_WIN32_MSG_ERR("CreateRectRgn() failed\n");
+ ECORE_WIN32_MSG_ERR("CreateRectRgn() failed");
return;
}
for (y = 0; y < height; y++)
if (!(rgnLine = CreateRectRgn(0, 0, 0, 0)))
{
- ECORE_WIN32_MSG_ERR("CreateRectRgn() failed\n");
+ ECORE_WIN32_MSG_ERR("CreateRectRgn() failed");
return;
}
for (x = 0; x < width; x++)
if (!(rgnDot = CreateRectRgn(x, y, x + 1, y + 1)))
{
- ECORE_WIN32_MSG_ERR("CreateRectRgn() failed\n");
+ ECORE_WIN32_MSG_ERR("CreateRectRgn() failed");
return;
}
if (CombineRgn(rgnLine, rgnLine, rgnDot, RGN_OR) == ERROR)
{
- ECORE_WIN32_MSG_ERR("CombineRgn() has not created a new region\n");
+ ECORE_WIN32_MSG_ERR("CombineRgn() has not created a new region");
}
if (!DeleteObject(rgnDot))
{
- ECORE_WIN32_MSG_ERR("DeleteObject() failed\n");
+ ECORE_WIN32_MSG_ERR("DeleteObject() failed");
return;
}
}
}
if (CombineRgn(rgn, rgn, rgnLine, RGN_OR) == ERROR)
{
- ECORE_WIN32_MSG_ERR("CombineRgn() has not created a new region\n");
+ ECORE_WIN32_MSG_ERR("CombineRgn() has not created a new region");
}
if (!DeleteObject(rgnLine))
{
- ECORE_WIN32_MSG_ERR("DeleteObject() failed\n");
+ ECORE_WIN32_MSG_ERR("DeleteObject() failed");
return;
}
}
if (!SetWindowRgn(wnd->window, rgn, TRUE))
{
- ECORE_WIN32_MSG_ERR("SetWindowRgn() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowRgn() failed");
}
}
{
if (!window) return;
- ECORE_WIN32_MSG_INFO("showing window\n");
+ ECORE_WIN32_MSG_INFO("showing window");
ShowWindow(((struct _Ecore_Win32_Window *)window)->window, SW_SHOWNORMAL);
if (!UpdateWindow(((struct _Ecore_Win32_Window *)window)->window))
{
- ECORE_WIN32_MSG_ERR("UpdateWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("UpdateWindow() failed");
}
}
{
if (!window) return;
- ECORE_WIN32_MSG_INFO("hiding window\n");
+ ECORE_WIN32_MSG_INFO("hiding window");
ShowWindow(((struct _Ecore_Win32_Window *)window)->window, SW_HIDE);
}
{
if (!window) return;
- ECORE_WIN32_MSG_INFO("raising window\n");
+ ECORE_WIN32_MSG_INFO("raising window");
if (!SetWindowPos(((struct _Ecore_Win32_Window *)window)->window,
HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
}
}
{
if (!window) return;
- ECORE_WIN32_MSG_INFO("lowering window\n");
+ ECORE_WIN32_MSG_INFO("lowering window");
if (!SetWindowPos(((struct _Ecore_Win32_Window *)window)->window,
HWND_BOTTOM, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
}
}
if (!title || !title[0]) return;
- ECORE_WIN32_MSG_INFO("setting window title\n");
+ ECORE_WIN32_MSG_INFO("setting window title");
if (!SetWindowText(((struct _Ecore_Win32_Window *)window)->window, title))
{
- ECORE_WIN32_MSG_ERR("SetWindowText() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowText() failed");
}
}
{
if (!window) return;
- ECORE_WIN32_MSG_INFO("focusing window\n");
+ ECORE_WIN32_MSG_INFO("focusing window");
if (!SetFocus(((struct _Ecore_Win32_Window *)window)->window))
{
- ECORE_WIN32_MSG_ERR("SetFocus() failed\n");
+ ECORE_WIN32_MSG_ERR("SetFocus() failed");
}
}
((!ew->iconified) && (!on)))
return;
- ECORE_WIN32_MSG_INFO("iconifying window: %s\n", on ? "yes" : "no");
+ ECORE_WIN32_MSG_INFO("iconifying window: %s", on ? "yes" : "no");
ShowWindow(ew->window, on ? SW_MINIMIZE : SW_RESTORE);
ew->iconified = on;
((!ew->borderless) && (!on)))
return;
- ECORE_WIN32_MSG_INFO("setting window without border: %s\n", on ? "yes" : "no");
+ ECORE_WIN32_MSG_INFO("setting window without border: %s", on ? "yes" : "no");
w = ew->window;
{
if (!GetClientRect(w, &rect))
{
- ECORE_WIN32_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetClientRect() failed");
return;
}
SetLastError(0);
if (!SetWindowLongPtr(w, GWL_STYLE, style & ~(WS_CAPTION | WS_THICKFRAME)) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
}
{
if (!GetWindowRect(w, &rect))
{
- ECORE_WIN32_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowRect() failed");
return;
}
style |= WS_CAPTION | WS_THICKFRAME;
if (!AdjustWindowRect (&rect, style, FALSE))
{
- ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed");
return;
}
SetLastError(0);
if (!SetWindowLongPtr(w, GWL_STYLE, style) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
}
rect.right - rect.left, rect.bottom - rect.top,
SWP_NOMOVE | SWP_FRAMECHANGED))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
return;
}
ew->borderless = on;
((!ew->fullscreen) && (!on)))
return;
- ECORE_WIN32_MSG_INFO("setting fullscreen: %s\n", on ? "yes" : "no");
+ ECORE_WIN32_MSG_INFO("setting fullscreen: %s", on ? "yes" : "no");
ew->fullscreen = !!on;
w = ew->window;
if (!GetWindowRect(w, &ew->rect))
{
- ECORE_WIN32_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowRect() failed");
return;
}
if (!(ew->style = GetWindowLong(w, GWL_STYLE)))
{
- ECORE_WIN32_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WIN32_MSG_ERR("GetWindowLong() failed");
return;
}
style = ew->style & ~WS_OVERLAPPEDWINDOW & ~WS_SIZEBOX;
SetLastError(0);
if (!SetWindowLongPtr(w, GWL_STYLE, style) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
SetLastError(0);
if (!SetWindowLongPtr(w, GWL_EXSTYLE, WS_EX_TOPMOST) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
if (!SetWindowPos(w, HWND_TOPMOST, 0, 0,
GetSystemMetrics (SM_CXSCREEN), GetSystemMetrics (SM_CYSCREEN),
SWP_NOCOPYBITS | SWP_SHOWWINDOW))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
return;
}
}
SetLastError(0);
if (!SetWindowLongPtr(w, GWL_STYLE, ew->style) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
SetLastError(0);
if (!SetWindowLongPtr(w, GWL_EXSTYLE, 0) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
return;
}
if (!SetWindowPos(w, HWND_NOTOPMOST,
ew->rect.bottom - ew->rect.top,
SWP_NOCOPYBITS | SWP_SHOWWINDOW))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
return;
}
}
ecore_win32_window_cursor_set(Ecore_Win32_Window *window,
Ecore_Win32_Cursor *cursor)
{
- ECORE_WIN32_MSG_INFO("setting cursor\n");
+ ECORE_WIN32_MSG_INFO("setting cursor");
if (!SetClassLong(((struct _Ecore_Win32_Window *)window)->window,
GCL_HCURSOR, (LONG)cursor))
{
- ECORE_WIN32_MSG_ERR("SetClassLong() failed\n");
+ ECORE_WIN32_MSG_ERR("SetClassLong() failed");
}
}
if (!window || !state || !num)
return;
- ECORE_WIN32_MSG_INFO("setting cursor state\n");
+ ECORE_WIN32_MSG_INFO("setting cursor state");
for (i = 0; i < num; i++)
{
ew = (struct _Ecore_Win32_Window *)window;
w = ew->window;
- ECORE_WIN32_MSG_INFO("sending cursor state\n");
+ ECORE_WIN32_MSG_INFO("sending cursor state");
switch (state)
{
if (!SystemParametersInfo(SPI_GETWORKAREA, 0,
&rect, 0))
{
- ECORE_WIN32_MSG_ERR("SystemParametersInfo() failed\n");
+ ECORE_WIN32_MSG_ERR("SystemParametersInfo() failed");
break;
}
y = rect.top;
if (!GetClientRect(w, &rect))
{
- ECORE_WIN32_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetClientRect() failed");
break;
}
height,
TRUE))
{
- ECORE_WIN32_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("MoveWindow() failed");
}
}
break;
if (!GetClientRect(w, &rect))
{
- ECORE_WIN32_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WIN32_MSG_ERR("GetClientRect() failed");
break;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WIN32_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("MoveWindow() failed");
}
}
break;
if (!SystemParametersInfo(SPI_GETWORKAREA, 0,
&rect, 0))
{
- ECORE_WIN32_MSG_ERR("SystemParametersInfo() failed\n");
+ ECORE_WIN32_MSG_ERR("SystemParametersInfo() failed");
break;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WIN32_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WIN32_MSG_ERR("MoveWindow() failed");
}
}
break;
0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
}
break;
case ECORE_WIN32_WINDOW_STATE_BELOW:
0, 0,
SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW))
{
- ECORE_WIN32_MSG_ERR("SetWindowPos() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowPos() failed");
}
break;
case ECORE_WIN32_WINDOW_STATE_DEMANDS_ATTENTION:
if (!window)
return;
- ECORE_WIN32_MSG_INFO("setting window type\n");
+ ECORE_WIN32_MSG_INFO("setting window type");
switch (type)
{
w = (struct _Ecore_Win32_Window *)calloc(1, sizeof(struct _Ecore_Win32_Window));
if (!w)
{
- ECORE_WIN32_MSG_ERR("malloc() failed\n");
+ ECORE_WIN32_MSG_ERR("malloc() failed");
return NULL;
}
rect.bottom = height;
if (!AdjustWindowRect(&rect, style, FALSE))
{
- ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed\n");
+ ECORE_WIN32_MSG_ERR("AdjustWindowRect() failed");
free(w);
return NULL;
}
NULL, _ecore_win32_instance, NULL);
if (!w->window)
{
- ECORE_WIN32_MSG_ERR("CreateWindowEx() failed\n");
+ ECORE_WIN32_MSG_ERR("CreateWindowEx() failed");
free(w);
return NULL;
}
SetLastError(0);
if (!SetWindowLongPtr(w->window, GWL_USERDATA, (LONG)w) && (GetLastError() != 0))
{
- ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed\n");
+ ECORE_WIN32_MSG_ERR("SetWindowLongPtr() failed");
DestroyWindow(w->window);
free(w);
return NULL;
return 0;
}
- ECORE_WINCE_MSG_INFO("initializing ecore_wince (current count: %d)\n", _ecore_wince_init_count);
+ ECORE_WINCE_MSG_INFO("initializing ecore_wince (current count: %d)", _ecore_wince_init_count);
if (_ecore_wince_init_count > 0)
{
_ecore_wince_instance = GetModuleHandle(NULL);
if (!_ecore_wince_instance)
{
- ECORE_WINCE_MSG_ERR("GetModuleHandle() failed\n");
+ ECORE_WINCE_MSG_ERR("GetModuleHandle() failed");
return 0;
}
if(!RegisterClass(&wc))
{
- ECORE_WINCE_MSG_ERR("RegisterClass() failed\n");
+ ECORE_WINCE_MSG_ERR("RegisterClass() failed");
FreeLibrary(_ecore_wince_instance);
return 0;
}
{
HWND task_bar;
- ECORE_WINCE_MSG_INFO("shutting down ecore_wince (current count: %d)\n", _ecore_wince_init_count);
+ ECORE_WINCE_MSG_INFO("shutting down ecore_wince (current count: %d)", _ecore_wince_init_count);
_ecore_wince_init_count--;
if (_ecore_wince_init_count > 0) return _ecore_wince_init_count;
if (!UnregisterClass(ECORE_WINCE_WINDOW_CLASS, _ecore_wince_instance))
{
- ECORE_WINCE_MSG_ERR("UnregisterClass() failed\n");
+ ECORE_WINCE_MSG_ERR("UnregisterClass() failed");
}
if (!FreeLibrary(_ecore_wince_instance))
{
- ECORE_WINCE_MSG_ERR("FreeLibrary() failed\n");
+ ECORE_WINCE_MSG_ERR("FreeLibrary() failed");
}
_ecore_wince_instance = NULL;
{
POINT pt;
- ECORE_WINCE_MSG_INFO("mouse in window\n");
+ ECORE_WINCE_MSG_INFO("mouse in window");
pt.x = LOWORD(data_param);
pt.y = HIWORD(data_param);
}
else
{
- ECORE_WINCE_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetClientRect() failed");
}
_ecore_wince_event_handle_motion_notify(data);
{
Ecore_Event_Key *e;
- ECORE_WINCE_MSG_INFO("key pressed\n");
+ ECORE_WINCE_MSG_INFO("key pressed");
e = (Ecore_Event_Key *)malloc(sizeof(Ecore_Event_Key));
if (!e) return;
{
Ecore_Event_Key *e;
- ECORE_WINCE_MSG_INFO("key released\n");
+ ECORE_WINCE_MSG_INFO("key released");
e = (Ecore_Event_Key *)calloc(1, sizeof(Ecore_Event_Key));
if (!e) return;
{
Ecore_WinCE_Window *window;
- ECORE_WINCE_MSG_INFO("mouse button pressed\n");
+ ECORE_WINCE_MSG_INFO("mouse button pressed");
window = (Ecore_WinCE_Window *)GetWindowLong(msg->window, GWL_USERDATA);
{
Ecore_WinCE_Window *window;
- ECORE_WINCE_MSG_INFO("mouse button released\n");
+ ECORE_WINCE_MSG_INFO("mouse button released");
window = (void *)GetWindowLong(msg->window, GWL_USERDATA);
{
Ecore_Event_Mouse_Move *e;
- ECORE_WINCE_MSG_INFO("mouse moved\n");
+ ECORE_WINCE_MSG_INFO("mouse moved");
e = (Ecore_Event_Mouse_Move *)calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!e) return;
{
Ecore_WinCE_Window *window;
- ECORE_WINCE_MSG_INFO("mouse in\n");
+ ECORE_WINCE_MSG_INFO("mouse in");
window = (void *)GetWindowLong(msg->window, GWL_USERDATA);
{
Ecore_WinCE_Window *window;
- ECORE_WINCE_MSG_INFO("mouse out\n");
+ ECORE_WINCE_MSG_INFO("mouse out");
window = (void *)GetWindowLong(msg->window, GWL_USERDATA);
Ecore_WinCE_Event_Window_Focus_In *e;
struct _Ecore_WinCE_Window *window;
- ECORE_WINCE_MSG_INFO("focus in\n");
+ ECORE_WINCE_MSG_INFO("focus in");
e = (Ecore_WinCE_Event_Window_Focus_In *)calloc(1, sizeof(Ecore_WinCE_Event_Window_Focus_In));
if (!e) return;
Ecore_WinCE_Event_Window_Focus_Out *e;
struct _Ecore_WinCE_Window *window;
- ECORE_WINCE_MSG_INFO("focus out\n");
+ ECORE_WINCE_MSG_INFO("focus out");
e = (Ecore_WinCE_Event_Window_Focus_Out *)calloc(1, sizeof(Ecore_WinCE_Event_Window_Focus_Out));
if (!e) return;
{
Ecore_WinCE_Event_Window_Damage *e;
- ECORE_WINCE_MSG_INFO("window expose\n");
+ ECORE_WINCE_MSG_INFO("window expose");
e = (Ecore_WinCE_Event_Window_Damage *)calloc(1, sizeof(Ecore_WinCE_Event_Window_Damage));
if (!e) return;
e->y = msg->update.top;
e->width = msg->update.right - msg->update.left;
e->height = msg->update.bottom - msg->update.top;
- ECORE_WINCE_MSG_INFO("window expose size: %dx%d\n", e->width, e->height);
+ ECORE_WINCE_MSG_INFO("window expose size: %dx%d", e->width, e->height);
e->time = _ecore_wince_event_last_time;
{
Ecore_WinCE_Event_Window_Create *e;
- ECORE_WINCE_MSG_INFO("window create notify\n");
+ ECORE_WINCE_MSG_INFO("window create notify");
e = calloc(1, sizeof(Ecore_WinCE_Event_Window_Create));
if (!e) return;
{
Ecore_WinCE_Event_Window_Destroy *e;
- ECORE_WINCE_MSG_INFO("window destroy notify\n");
+ ECORE_WINCE_MSG_INFO("window destroy notify");
e = calloc(1, sizeof(Ecore_WinCE_Event_Window_Destroy));
if (!e) return;
{
Ecore_WinCE_Event_Window_Show *e;
- ECORE_WINCE_MSG_INFO("window map notify\n");
+ ECORE_WINCE_MSG_INFO("window map notify");
e = calloc(1, sizeof(Ecore_WinCE_Event_Window_Show));
if (!e) return;
{
Ecore_WinCE_Event_Window_Hide *e;
- ECORE_WINCE_MSG_INFO("window unmap notify\n");
+ ECORE_WINCE_MSG_INFO("window unmap notify");
e = calloc(1, sizeof(Ecore_WinCE_Event_Window_Hide));
if (!e) return;
{
Ecore_WinCE_Event_Window_Delete_Request *e;
- ECORE_WINCE_MSG_INFO("window delete request\n");
+ ECORE_WINCE_MSG_INFO("window delete request");
e = calloc(1, sizeof(Ecore_WinCE_Event_Window_Delete_Request));
if (!e) return;
HWND window;
RECT rect;
- ECORE_WINCE_MSG_INFO("creating window\n");
+ ECORE_WINCE_MSG_INFO("creating window");
w = (struct _Ecore_WinCE_Window *)calloc(1, sizeof(struct _Ecore_WinCE_Window));
if (!w)
{
- ECORE_WINCE_MSG_ERR("malloc() failed\n");
+ ECORE_WINCE_MSG_ERR("malloc() failed");
return NULL;
}
rect.bottom = height;
if (!AdjustWindowRectEx(&rect, WS_CAPTION | WS_SYSMENU | WS_VISIBLE, FALSE, WS_EX_TOPMOST))
{
- ECORE_WINCE_MSG_ERR("AdjustWindowRectEx() failed\n");
+ ECORE_WINCE_MSG_ERR("AdjustWindowRectEx() failed");
free(w);
return NULL;
}
NULL, _ecore_wince_instance, NULL);
if (!window)
{
- ECORE_WINCE_MSG_ERR("CreateWindowEx() failed\n");
+ ECORE_WINCE_MSG_ERR("CreateWindowEx() failed");
free(w);
return NULL;
}
if (!_ecore_wince_hardware_keys_register(window))
{
- ECORE_WINCE_MSG_ERR("_ecore_wince_hardware_keys_register() failed\n");
+ ECORE_WINCE_MSG_ERR("_ecore_wince_hardware_keys_register() failed");
DestroyWindow(window);
free(w);
return NULL;
SetLastError(0);
if (!SetWindowLong(window, GWL_USERDATA, (LONG)w) && (GetLastError() != 0))
{
- ECORE_WINCE_MSG_ERR("SetWindowLong() failed\n");
+ ECORE_WINCE_MSG_ERR("SetWindowLong() failed");
DestroyWindow(window);
free(w);
return NULL;
{
if (!window) return;
- ECORE_WINCE_MSG_INFO("destroying window\n");
+ ECORE_WINCE_MSG_INFO("destroying window");
DestroyWindow(((struct _Ecore_WinCE_Window *)window)->window);
free(window);
if (!window || ((struct _Ecore_WinCE_Window *)window)->fullscreen)
return;
- ECORE_WINCE_MSG_INFO("moving window (%dx%d)\n", x, y);
+ ECORE_WINCE_MSG_INFO("moving window (%dx%d)", x, y);
w = ((struct _Ecore_WinCE_Window *)window)->window;
if (!GetWindowRect(w, &rect))
{
- ECORE_WINCE_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowRect() failed");
return;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WINCE_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WINCE_MSG_ERR("MoveWindow() failed");
}
}
if (!window || ((struct _Ecore_WinCE_Window *)window)->fullscreen)
return;
- ECORE_WINCE_MSG_INFO("resizing window (%dx%d)\n", width, height);
+ ECORE_WINCE_MSG_INFO("resizing window (%dx%d)", width, height);
w = (struct _Ecore_WinCE_Window *)window;
if (!GetWindowRect(w->window, &rect))
{
- ECORE_WINCE_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowRect() failed");
return;
}
rect.bottom = height;
if (!(style = GetWindowLong(w->window, GWL_STYLE)))
{
- ECORE_WINCE_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowLong() failed");
return;
}
if (!(exstyle = GetWindowLong(w->window, GWL_EXSTYLE)))
{
- ECORE_WINCE_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowLong() failed");
return;
}
if (!AdjustWindowRectEx(&rect, style, FALSE, exstyle))
{
- ECORE_WINCE_MSG_ERR("AdjustWindowRectEx() failed\n");
+ ECORE_WINCE_MSG_ERR("AdjustWindowRectEx() failed");
return;
}
rect.bottom - rect.top,
FALSE))
{
- ECORE_WINCE_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WINCE_MSG_ERR("MoveWindow() failed");
}
}
if (!window || ((struct _Ecore_WinCE_Window *)window)->fullscreen)
return;
- ECORE_WINCE_MSG_INFO("moving and resizing window (%dx%d %dx%d)\n", x, y, width, height);
+ ECORE_WINCE_MSG_INFO("moving and resizing window (%dx%d %dx%d)", x, y, width, height);
w = ((struct _Ecore_WinCE_Window *)window);
rect.left = 0;
rect.bottom = height;
if (!(style = GetWindowLong(w->window, GWL_STYLE)))
{
- ECORE_WINCE_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowLong() failed");
return;
}
if (!(exstyle = GetWindowLong(w->window, GWL_EXSTYLE)))
{
- ECORE_WINCE_MSG_ERR("GetWindowLong() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowLong() failed");
return;
}
if (!AdjustWindowRectEx(&rect, style, FALSE, exstyle))
{
- ECORE_WINCE_MSG_ERR("AdjustWindowRectEx() failed\n");
+ ECORE_WINCE_MSG_ERR("AdjustWindowRectEx() failed");
return;
}
rect.bottom - rect.top,
TRUE))
{
- ECORE_WINCE_MSG_ERR("MoveWindow() failed\n");
+ ECORE_WINCE_MSG_ERR("MoveWindow() failed");
}
}
{
if (!window) return;
- ECORE_WINCE_MSG_INFO("showing window\n");
+ ECORE_WINCE_MSG_INFO("showing window");
if (!ShowWindow(((struct _Ecore_WinCE_Window *)window)->window, SW_SHOWNORMAL))
{
- ECORE_WINCE_MSG_ERR("ShowWindow() failed\n");
+ ECORE_WINCE_MSG_ERR("ShowWindow() failed");
return;
}
if (!UpdateWindow(((struct _Ecore_WinCE_Window *)window)->window))
{
- ECORE_WINCE_MSG_ERR("UpdateWindow() failed\n");
+ ECORE_WINCE_MSG_ERR("UpdateWindow() failed");
}
if (!SendMessage(((struct _Ecore_WinCE_Window *)window)->window, WM_SHOWWINDOW, 1, 0))
{
- ECORE_WINCE_MSG_ERR("SendMessage() failed\n");
+ ECORE_WINCE_MSG_ERR("SendMessage() failed");
}
}
{
if (!window) return;
- ECORE_WINCE_MSG_INFO("hiding window\n");
+ ECORE_WINCE_MSG_INFO("hiding window");
if (!ShowWindow(((struct _Ecore_WinCE_Window *)window)->window, SW_HIDE))
{
- ECORE_WINCE_MSG_ERR("ShowWindow() failed\n");
+ ECORE_WINCE_MSG_ERR("ShowWindow() failed");
return;
}
if (!SendMessage(((struct _Ecore_WinCE_Window *)window)->window, WM_SHOWWINDOW, 0, 0))
{
- ECORE_WINCE_MSG_ERR("SendMessage() failed\n");
+ ECORE_WINCE_MSG_ERR("SendMessage() failed");
}
}
if (!title || !title[0]) return;
- ECORE_WINCE_MSG_INFO("setting window title\n");
+ ECORE_WINCE_MSG_INFO("setting window title");
wtitle = evil_char_to_wchar(title);
if (!wtitle) return;
if (!SetWindowText(((struct _Ecore_WinCE_Window *)window)->window, wtitle))
{
- ECORE_WINCE_MSG_ERR("SetWindowText() failed\n");
+ ECORE_WINCE_MSG_ERR("SetWindowText() failed");
}
free(wtitle);
}
if (!window)
return;
- ECORE_WINCE_MSG_INFO("setting backend\n");
+ ECORE_WINCE_MSG_INFO("setting backend");
w = (struct _Ecore_WinCE_Window *)window;
w->backend = backend;
if (!window)
return;
- ECORE_WINCE_MSG_INFO("setting suspend callback\n");
+ ECORE_WINCE_MSG_INFO("setting suspend callback");
w = (struct _Ecore_WinCE_Window *)window;
w->suspend = suspend;
if (!window)
return;
- ECORE_WINCE_MSG_INFO("setting resume callback\n");
+ ECORE_WINCE_MSG_INFO("setting resume callback");
w = (struct _Ecore_WinCE_Window *)window;
w->resume = resume;
int w;
int h;
- ECORE_WINCE_MSG_INFO("getting window geometry\n");
+ ECORE_WINCE_MSG_INFO("getting window geometry");
if (!window)
{
if (!GetClientRect(((struct _Ecore_WinCE_Window *)window)->window,
&rect))
{
- ECORE_WINCE_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetClientRect() failed");
if (x) *x = 0;
if (y) *y = 0;
if (!GetWindowRect(((struct _Ecore_WinCE_Window *)window)->window,
&rect))
{
- ECORE_WINCE_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowRect() failed");
if (x) *x = 0;
if (y) *y = 0;
{
RECT rect;
- ECORE_WINCE_MSG_INFO("getting window size\n");
+ ECORE_WINCE_MSG_INFO("getting window size");
if (!window)
{
if (!GetClientRect(((struct _Ecore_WinCE_Window *)window)->window,
&rect))
{
- ECORE_WINCE_MSG_ERR("GetClientRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetClientRect() failed");
if (width) *width = 0;
if (height) *height = 0;
((!ew->fullscreen) && (!on)))
return;
- ECORE_WINCE_MSG_INFO("setting fullscreen: %s\n", on ? "yes" : "no");
+ ECORE_WINCE_MSG_INFO("setting fullscreen: %s", on ? "yes" : "no");
ew->fullscreen = !!on;
w = ew->window;
/* save the position and size of the window */
if (!GetWindowRect(w, &ew->rect))
{
- ECORE_WINCE_MSG_ERR("GetWindowRect() failed\n");
+ ECORE_WINCE_MSG_ERR("GetWindowRect() failed");
return;
}
task_bar = FindWindow(L"HHTaskBar", NULL);
if (!task_bar)
{
- ECORE_WINCE_MSG_INFO("FindWindow(): can not find task bar\n");
+ ECORE_WINCE_MSG_INFO("FindWindow(): can not find task bar");
}
if (!ShowWindow(task_bar, SW_HIDE))
{
- ECORE_WINCE_MSG_INFO("ShowWindow(): task bar already hidden\n");
+ ECORE_WINCE_MSG_INFO("ShowWindow(): task bar already hidden");
}
if (!EnableWindow(task_bar, FALSE))
{
- ECORE_WINCE_MSG_INFO("EnableWindow(): input already disabled\n");
+ ECORE_WINCE_MSG_INFO("EnableWindow(): input already disabled");
}
/* style: visible + popup */
if (!SetWindowLong(w, GWL_STYLE, WS_POPUP | WS_VISIBLE))
{
- ECORE_WINCE_MSG_INFO("SetWindowLong() failed\n");
+ ECORE_WINCE_MSG_INFO("SetWindowLong() failed");
}
/* resize window to fit the entire screen */
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED))
{
- ECORE_WINCE_MSG_INFO("SetWindowPos() failed\n");
+ ECORE_WINCE_MSG_INFO("SetWindowPos() failed");
}
/*
* It seems that SetWindowPos is not sufficient.
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
TRUE))
{
- ECORE_WINCE_MSG_INFO("MoveWindow() failed\n");
+ ECORE_WINCE_MSG_INFO("MoveWindow() failed");
}
}
else
task_bar = FindWindow(L"HHTaskBar", NULL);
if (!task_bar)
{
- ECORE_WINCE_MSG_INFO("FindWindow(): can not find task bar\n");
+ ECORE_WINCE_MSG_INFO("FindWindow(): can not find task bar");
}
if (!ShowWindow(task_bar, SW_SHOW))
{
- ECORE_WINCE_MSG_INFO("ShowWindow(): task bar already visible\n");
+ ECORE_WINCE_MSG_INFO("ShowWindow(): task bar already visible");
}
if (!EnableWindow(task_bar, TRUE))
{
- ECORE_WINCE_MSG_INFO("EnableWindow(): input already enabled\n");
+ ECORE_WINCE_MSG_INFO("EnableWindow(): input already enabled");
}
/* style: visible + caption + sysmenu */
if (!SetWindowLong(w, GWL_STYLE, WS_CAPTION | WS_SYSMENU | WS_VISIBLE))
{
- ECORE_WINCE_MSG_INFO("SetWindowLong() failed\n");
+ ECORE_WINCE_MSG_INFO("SetWindowLong() failed");
}
/* restaure the position and size of the window */
if (!SetWindowPos(w, HWND_TOPMOST,
ew->rect.bottom - ew->rect.top,
SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED))
{
- ECORE_WINCE_MSG_INFO("SetWindowLong() failed\n");
+ ECORE_WINCE_MSG_INFO("SetWindowLong() failed");
}
/*
* It seems that SetWindowPos is not sufficient.
ew->rect.bottom - ew->rect.top,
TRUE))
{
- ECORE_WINCE_MSG_INFO("MoveWindow() failed\n");
+ ECORE_WINCE_MSG_INFO("MoveWindow() failed");
}
}
}
core_dll = LoadLibrary(L"coredll.dll");
if (!core_dll)
{
- ECORE_WINCE_MSG_ERR("LoadLibrary() failed\n");
+ ECORE_WINCE_MSG_ERR("LoadLibrary() failed");
return 0;
}
unregister_fct = (UnregisterFunc1Proc)GetProcAddress(core_dll, L"UnregisterFunc1");
if (!unregister_fct)
{
- ECORE_WINCE_MSG_ERR("GetProcAddress() failed\n");
+ ECORE_WINCE_MSG_ERR("GetProcAddress() failed");
FreeLibrary(core_dll);
return 0;
}