Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1030308 // jnaWindows_setAlwaysOnTop

JavaX fragment (include) [tags: use-pretranspiled]

Uses 3917K of libraries. Click here for Pure Java version (57L/1K).

!include once #1030303 // JNA Win32

svoid jnaWindows_setAlwaysOnTop(HWND window) {
  if (window == null) ret;
  
  HWND HWND_TOPMOST = new(new Pointer(-1));
  int SWP_NOSIZE = 0x0001;
  int SWP_NOMOVE = 0x0002;
  int TOPMOST_FLAGS = SWP_NOMOVE | SWP_NOSIZE;

  User32.INSTANCE.SetWindowPos(window, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS);
}

Author comment

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: 192 / 269
Version history: 4 change(s)
Referenced in: [show references]