Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Hiding/removing the window frame with Win32API?

Does anyone know how to remove or simply hide the window frame for Game.exe with Win32API? Or any other method? I want to hide the frame on the outside of the window, and I haven't been able to find anything on it...
 
I haven't understanded well. Do you want to remove the border of the window?

If so, you can use:
Code:
GPPSA = Win32API.new('kernel32', 'GetPrivateProfileStringA', 'PPPPLP', 'L')

FindWindowA = Win32API.new('user32', 'FindWindowA', 'pp', 'l')

SetWindowLong = Win32API.new('user32', 'SetWindowLong', 'LLL', 'L')

 

title = "\0" * 255

GPPSA.call('Game', 'Title', '', title, 255, '.\\Game.ini')

title.delete!("\0")

 

hwnd = FindWindowA.call('RGSS Player', title)

 

SetWindowLong.call(hwnd, -16, 0x20000000)
 
Well, that removes the window's contents from the frame, but the frame is still showing, and my clickable close button in the rm* game itself isn't clickable...
 
Yeyinde,

0x80880000 is hex for the binary:
10000000100010000000000000000000

~0x20000000 is the hex for the binary:
11011111111111111111111111111111

Using the bitwise and operator on them ['&'] merely nets you:
10000000100010000000000000000000 or
0x80880000

If you mean use both values together, you'd use a bitwise inclusive or operator [ '|' ] have 0xDFFFFFFF which is the complement of 0x20000000, since there are no new bits introduced by the 0x80880000 that aren't already present in the complement of 0x20000000.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top