怎么样通过SWT设置窗体?
//设置最上
OS.SetWindowPos(shell.handle, OS.HWND_TOPMOST, 0, 10, 300, 300, SWT.NULL); //设置透明窗体 OS.SetWindowLong(shell.handle, OS.GWL_EXSTYLE, OS.GetWindowLong( shell.handle, OS.GWL_EXSTYLE) ^ 0x80000);TCHAR lpLibFileName = new TCHAR(0, "User32.dll", true);
int hInst = OS.LoadLibrary(lpLibFileName); if (hInst != 0) { String name = "SetLayeredWindowAttributes/0"; byte[] lpProcName = new byte[name.length()]; for (int i = 0; i < lpProcName.length; i++) { lpProcName[i] = (byte) name.charAt(i); } int fun = OS.GetProcAddress(hInst, lpProcName); if (fun != 0) { OS.CallWindowProc(fun, shell.handle, 0, 200, 2); } OS.FreeLibrary(hInst); }