impl.com.pixelduke.window.win32.DWM Maven / Gradle / Ivy
package impl.com.pixelduke.window.win32;
import com.sun.jna.platform.win32.WinDef;
public class DWM {
public static void setWindowAttribute(WinDef.HWND hwnd, int attribute, int attributeValue) {
DwmSupport.INSTANCE.DwmSetWindowAttribute(
hwnd,
attribute,
new WinDef.DWORDByReference(new WinDef.DWORD(attributeValue)),
WinDef.DWORD.SIZE
);
}
public static void setWindowAttribute(WinDef.HWND hwnd, int attribute, boolean attributeValue) {
DwmSupport.INSTANCE.DwmSetWindowAttribute(
hwnd,
attribute,
new WinDef.BOOLByReference(new WinDef.BOOL(attributeValue)),
WinDef.BOOL.SIZE
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy