MCPcopy Index your code
hub / github.com/HelloBush/Java_MHXYdemo / main

Method main

src/pkgTest/TestCursor.java:10–27  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

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 7

DMInitMethod · 0.95
SetWindowStateMethod · 0.95
BindWindowMethod · 0.95
SetWindowSizeMethod · 0.95
GetCursorPosMethod · 0.95
getIntMethod · 0.95
DMClearMethod · 0.95

Tested by

no test coverage detected