2.1.0 • Published 5 years ago

win-setwindowpos v2.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

SetWindowPos

Build Status

Node package wrapping SetWindowPos from winapi User32.dll

Requirements

  • Windows
  • Node 10.x or newer

Installation

npm i win-setwindowpos

Usage

SetWindowPos is designed to be used with electron (altough it can be used without it).

const { 
  SetWindowPos,
  HWND_BOTTOM,
  SWP_NOACTIVATE,
  SWP_NOSIZE,
  SWP_NOMOVE
} = require('win-setwindowpos');
let window;

function createConfigWindow() {
  window = new BrowserWindow({
    // BrowserWindow parameters
  });
  // window setup
  const hwnd = window.getNativeWindowHandle();
  SetWindowPos(
    hwnd,
    HWND_BOTTOM,
    0,
    0,
    0,
    0,
    SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE
  );
}
2.1.0

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago