Lines Matching refs:cursor
317 HCURSOR cursor = (HCURSOR)lParam; in callback_child() local
323 ret = GetIconInfo(cursor, &info); in callback_child()
331 ret = DestroyCursor(cursor); in callback_child()
456 HCURSOR cursor; in test_child_process() local
472 cursor = CreateIconIndirect(&cursorInfo); in test_child_process()
473 ok(cursor != NULL, "CreateIconIndirect returned %p.\n", cursor); in test_child_process()
475 SetCursor(cursor); in test_child_process()
478 SendMessageA(child, WM_USER+1, 0, (LPARAM) cursor); in test_child_process()
697 HCURSOR cursor, cursor2; in test_initial_cursor() local
700 cursor = GetCursor(); in test_initial_cursor()
706 ok(cursor == cursor2, "cursor (%p) is not IDC_WAIT (%p).\n", cursor, cursor2); in test_initial_cursor()
2291 HCURSOR cursor, old_cursor, global_cursor = 0; in test_SetCursor() local
2309 cursor = GetCursor(); in test_SetCursor()
2313 ok( result == (DWORD_PTR)cursor, "wrong thread cursor %x/%p\n", result, cursor ); in test_SetCursor()
2325 cursor = CreateIconIndirect(&cursorInfo); in test_SetCursor()
2326 ok(cursor != NULL, "CreateIconIndirect returned %p\n", cursor); in test_SetCursor()
2327 old_cursor = SetCursor( cursor ); in test_SetCursor()
2334 ok( info.hCursor == global_cursor || broken(info.hCursor != cursor), /* win9x */ in test_SetCursor()
2349 thread = CreateThread( NULL, 0, set_cursor_thread, cursor, 0, &id ); in test_SetCursor()
2356 thread = CreateThread( NULL, 0, set_cursor_thread, cursor, 0, &id ); in test_SetCursor()
2360 ok( GetCursor() == cursor, "wrong cursor %p/0\n", cursor ); in test_SetCursor()
2366 ok( info.hCursor == global_cursor || broken(info.hCursor != cursor), /* win9x */ in test_SetCursor()
2370 DestroyCursor( cursor ); in test_SetCursor()
2373 cursor = SetCursor( (HCURSOR)0xbadbad ); in test_SetCursor()
2375 ok( cursor == 0, "wrong cursor %p/0\n", cursor ); in test_SetCursor()
2383 ok( info.hCursor == global_cursor || broken(info.hCursor != cursor), /* win9x */ in test_SetCursor()
2518 HCURSOR cursor, cursor2, new_cursor; in test_DestroyCursor() local
2534 cursor = CreateIconIndirect(&cursorInfo); in test_DestroyCursor()
2535 ok(cursor != NULL, "CreateIconIndirect returned %p\n", cursor); in test_DestroyCursor()
2536 if(!cursor) { in test_DestroyCursor()
2539 SetCursor(cursor); in test_DestroyCursor()
2542 ret = DestroyCursor(cursor); in test_DestroyCursor()
2549 ok(new_cursor != cursor, "GetCursor returned %p/%p\n", new_cursor, cursor); in test_DestroyCursor()
2551 ok(new_cursor == cursor, "GetCursor returned %p/%p\n", new_cursor, cursor); in test_DestroyCursor()
2554 ret = GetIconInfo( cursor, &new_info ); in test_DestroyCursor()
2566 ret = DestroyCursor( cursor ); in test_DestroyCursor()
2572 cursor2 = SetCursor( cursor ); in test_DestroyCursor()
2573 ok( cursor2 == cursor, "SetCursor returned %p/%p\n", cursor2, cursor); in test_DestroyCursor()
2580 cursor2 = CopyCursor( cursor ); in test_DestroyCursor()
2587 ret = DestroyCursor( cursor ); in test_DestroyCursor()
2588 if (new_cursor != cursor) /* win9x */ in test_DestroyCursor()
2596 cursor2 = SetCursor( cursor ); in test_DestroyCursor()
2597 ok(!cursor2, "SetCursor returned %p/%p\n", cursor2, cursor); in test_DestroyCursor()
2607 if (new_cursor != cursor) /* win9x */ in test_DestroyCursor()
2608 ok(cursor2 == new_cursor, "SetCursor returned %p/%p\n", cursor2, cursor); in test_DestroyCursor()
2610 ok(!cursor2, "SetCursor returned %p/%p\n", cursor2, cursor); in test_DestroyCursor()
2614 ok(!cursor2, "GetCursor returned %p/%p\n", cursor2, cursor); in test_DestroyCursor()
2617 ret = DestroyCursor(cursor); in test_DestroyCursor()
2618 if (new_cursor != cursor) /* win9x */ in test_DestroyCursor()
2629 cursor = LoadCursorA(NULL, (LPCSTR)IDC_ARROW); in test_DestroyCursor()
2632 ret = DestroyCursor(cursor); in test_DestroyCursor()
2639 SetCursor(cursor); in test_DestroyCursor()
2645 ok(cursor2 == cursor, "cursor == %p, cursor2 == %p\n", cursor, cursor2); in test_DestroyCursor()
2649 ok(cursor2 != cursor, "cursor == %p, cursor2 == %p\n", cursor, cursor2); in test_DestroyCursor()