Created
January 3, 2015 19:27
-
-
Save HimeWorks/7ce4b79a36ec6ccae340 to your computer and use it in GitHub Desktop.
Hide Window Border and Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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