1737 if (pWindow) { 1738 pWindow->SetCursor(cursor); 1739 1740 // Update the delegate window as well if present 1741 HWND delegateHwnd = pWindow->GetDelegateWindow(); 1742 if (delegateHwnd) { 1743 BaseWnd *pDelegateWindow = BaseWnd::FromHandle(delegateHwnd); 1744 if (pDelegateWindow) { 1745 pDelegateWindow->SetCursor(cursor); 1746 } 1747 } 1748 } 1749 } 1750 DECL_jobject(jCursor); 1751 LEAVE_MAIN_THREAD_WITH_hWnd; 1752 1753 ARG(jCursor) = jCursor; 1754 PERFORM(); 1755 } 1756 1757 } // extern "C" | 1737 if (pWindow) { 1738 pWindow->SetCursor(cursor); 1739 1740 // Update the delegate window as well if present 1741 HWND delegateHwnd = pWindow->GetDelegateWindow(); 1742 if (delegateHwnd) { 1743 BaseWnd *pDelegateWindow = BaseWnd::FromHandle(delegateHwnd); 1744 if (pDelegateWindow) { 1745 pDelegateWindow->SetCursor(cursor); 1746 } 1747 } 1748 } 1749 } 1750 DECL_jobject(jCursor); 1751 LEAVE_MAIN_THREAD_WITH_hWnd; 1752 1753 ARG(jCursor) = jCursor; 1754 PERFORM(); 1755 } 1756 1757 JNIEXPORT void JNICALL Java_com_sun_glass_ui_win_WinWindow__1setUpdatesCursor 1758 (JNIEnv *env, jobject jThis, jlong ptr, jboolean jUpdatesCursor) 1759 { 1760 ENTER_MAIN_THREAD() 1761 { 1762 GlassWindow *pWindow = GlassWindow::FromHandle(hWnd); 1763 if (pWindow) { 1764 pWindow->SetUpdatesCursor(jUpdatesCursor == JNI_TRUE ? true : false); 1765 } 1766 } 1767 jboolean jUpdatesCursor; 1768 LEAVE_MAIN_THREAD_WITH_hWnd; 1769 1770 ARG(jUpdatesCursor) = jUpdatesCursor; 1771 PERFORM(); 1772 } 1773 1774 } // extern "C" |