2 Questions!

Blitz3D Forums/Blitz3D Programming/2 Questions!

Colvette(Posted 2004) [#1]
Hey, all,

I'm working on a little game but I need to be able to do 2 things which I can't find any information about in the Blitz3D manual, or on the forums - can anyone help?

1) The game I'm writing is in windowed mode - I need to find out the resolution of the desktop so the window I create isn't too big. Is there any way to find the dimensions of the desktop?

2) As the game is windowed, I'd like to get rid of the title bar on the window so that the window just "floats". Is there anyway to just get rid of the title bar altogether?

Thanks in advance for any help! :)


fredborg(Posted 2004) [#2]
Have a look at this: http://www.blitzbasic.com/codearcs/codearcs.php?code=829

It contains everything you need. Just set the window style to: win\WindowStyle = WS_VISIBLE


Colvette(Posted 2004) [#3]
Certainly looks cool, but I don't know what to do with the "userlibs" bit? Any change you can help me out with that, too?

Thanks for pointing me in the right direction, though!


fredborg(Posted 2004) [#4]
If you take the top part of the code and uncomment all the lines except the three first ones, then save this part as 'User32.decls' in your Blitz3D\userlibs folder you are ready to go.


Colvette(Posted 2004) [#5]
Cool! Thanks for your help! :)