Resizeable windowmode and immediately maximize!

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

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!

It is and there was a massive thread about this a few years ago.

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?

Nope, wasn't that one - was a bigger thread.

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..?

i really dont want to spam the forum by opening new threads for little questions.
so is it possible?

Yes, infact it is part of Toms DX dll.

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.