Uses 3917K of libraries. Click here for Pure Java version (57L/1K).
1 | !include once #1030303 // JNA Win32 |
2 | |
3 | svoid jnaWindows_setAlwaysOnTop(HWND window) {
|
4 | if (window == null) ret; |
5 | |
6 | HWND HWND_TOPMOST = new(new Pointer(-1)); |
7 | int SWP_NOSIZE = 0x0001; |
8 | int SWP_NOMOVE = 0x0002; |
9 | int TOPMOST_FLAGS = SWP_NOMOVE | SWP_NOSIZE; |
10 | |
11 | User32.INSTANCE.SetWindowPos(window, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS); |
12 | } |
Began life as a copy of #1030305
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030308 |
| Snippet name: | jnaWindows_setAlwaysOnTop |
| Eternal ID of this version: | #1030308/5 |
| Text MD5: | b93a3ea462638b91fbacd0538ab48e76 |
| Transpilation MD5: | b1ffc3a1d7c2f0e28b0659ec2947ec24 |
| Author: | stefan |
| Category: | javax / windows |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-30 13:57:02 |
| Source code size: | 353 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 471 / 588 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |