Maximize Window at Start

Blitz3D Forums/Blitz3D Programming/Maximize Window at Start

KuRiX(Posted 2005) [#1]
Hi people. I have been searching a lot in the forums. I need to start blitz3D with the window maximized, but i cant!

I have tried user32.dll, and some params with other libs, but nothing!. Please, any help?


KuRiX(Posted 2005) [#2]
Ooook, hard, but here it goes:

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

thanks me!


Hotcakes(Posted 2005) [#3]
Why don't you just open up a windowed graphics mode the size of the desktop?


KuRiX(Posted 2005) [#4]
Because you can move the window, and appears on top of the start bar.

I want it maximized, so you cannot resize, you cannot move it, but later can be minimized or moved manually clicking on the restore button!


jfk EO-11110(Posted 2005) [#5]
Aren't there any comlications when the backbuffer / frontbuffer is still set at 400*300 and you are showing a maximized window?


KuRiX(Posted 2005) [#6]
Mmm, i don't know, i use a 800x600 maximized window with 4 viewports and backbuffer without any problems...


jfk EO-11110(Posted 2005) [#7]
ok. Useful snippet, BTW, thanks.