MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / TestCursor

Class TestCursor

src/pkgTest/TestCursor.java:9–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import pkgDm.Dm2Java;
8
9public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected