New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

win-setwindowpos

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

win-setwindowpos

JaroslawPokropinski <jarek.pokropinski@gmail.com>

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

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
  );
}

Keywords

windows

FAQs

Package last updated on 31 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts