(String args[])
| 8 | |
| 9 | public class TestCursor { |
| 10 | public static void main(String args[]){ |
| 11 | Dm2Java.DMInit(); |
| 12 | |
| 13 | Dm2Java dm = new Dm2Java(); |
| 14 | //���ڲ��� |
| 15 | int hwnd = 197612; |
| 16 | dm.SetWindowState(hwnd, 1); |
| 17 | int k = dm.BindWindow(hwnd, "gdi", "normal", "windows",0); |
| 18 | System.out.println(k); |
| 19 | dm.SetWindowSize(hwnd, 1040, 807); |
| 20 | Variant x = new Variant(-1,true); |
| 21 | Variant y = new Variant(-1,true); |
| 22 | dm.GetCursorPos(x, y); |
| 23 | System.out.println("x="+x.getInt()+",y="+y.getInt()); |
| 24 | |
| 25 | Dm2Java.DMClear(); |
| 26 | |
| 27 | } |
| 28 | } |
nothing calls this directly
no test coverage detected