Resizeable windowmode and immediately maximize!

Blitz3D Forums/Blitz3D Programming/Resizeable windowmode and immediately maximize!

bytecode77(Posted 2008) [#1]
hi!

the problem is simply: i want to use the window mode 3 (windowed and resizeable) and i want the window to immediately maximize.
is this possible somehow?
i suppose that the gdi, kernel and user dlls will be the solution in some way?! btw: will that even work in windows 98, vista etc?

thanks :)
bye!


puki(Posted 2008) [#2]
It is and there was a massive thread about this a few years ago.


bytecode77(Posted 2008) [#3]
you mean this one :P
http://www.blitzbasic.com/Community/posts.php?topic=46633

hwnd=Api_GetActiveWindow()
iStyle=Api_GetWindowLong(hwnd, GWL_STYLE)
Api_SetWindowLong(hwnd, GWL_STYLE, iStyle Or $10000)
Api_ShowWindow(hwnd,3)


works fine here... thanks!
man i feel stupid right now ;D




edit:
api_ShowWindow(api_GetActiveWindow(), 3)
even this seems to be working. is it just on my machine or is just this one line really enough?


puki(Posted 2008) [#4]
Nope, wasn't that one - was a bigger thread.


bytecode77(Posted 2008) [#5]
while this thread is still alive: is there a way not to blur out the pixels by resizing? - i mean pixelate in someway instead of filtering..?


bytecode77(Posted 2008) [#6]
i really dont want to spam the forum by opening new threads for little questions.
so is it possible?


Beaker(Posted 2008) [#7]
Yes, infact it is part of Toms DX dll.


bytecode77(Posted 2008) [#8]
hm. when you say so, i know how to pixelate something using toms dll. but that would require 3d mode including a sprite in front of the camera and a render to texture.
is that easier with the user32, gdi32 etc functions?

if it isnt, i will do it with toms dll.