Skip to content

Instantly share code, notes, and snippets.

@HimeWorks
Created January 3, 2015 19:27
Show Gist options
  • Save HimeWorks/7ce4b79a36ec6ccae340 to your computer and use it in GitHub Desktop.
Save HimeWorks/7ce4b79a36ec6ccae340 to your computer and use it in GitHub Desktop.
Hide Window Border and Title
# This snippet will hide the window border and title for your RPG Maker VXAce game
# Simply insert it somewhere above Main in your project.
# Taken from Zeus81 Fullscreen++
# http://forums.rpgmakerweb.com/index.php?/topic/14081-fullscreen/
CreateWindowEx = Win32API.new('user32', 'CreateWindowEx', 'ippiiiiiiiii', 'i')
FindWindow = Win32API.new('user32', 'FindWindow', 'pp', 'i')
SetWindowLong = Win32API.new('user32' , 'SetWindowLong' , 'iii' , 'i')
HWND = FindWindow.call('RGSS Player', 0)
BackHWND = CreateWindowEx.call(0x08000008, 'Static', '', 0x80000000, 0, 0, 0, 0, 0, 0, 0, 0)
# Hide border/title
SetWindowLong.call(HWND, -16, 0x14000000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment