JaroslawPokropinski <jarek.pokropinski@gmail.com>
npm install win-setwindowposNode package wrapping SetWindowPos from winapi User32.dll
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
);
}
``