Maximize Window at Start

Blitz3D Forums/Blitz3D Programming/Maximize Window at Start

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?

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!

Why don't you just open up a windowed graphics mode the size of the desktop?

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!

Aren't there any comlications when the backbuffer / frontbuffer is still set at 400*300 and you are showing a maximized window?

Mmm, i don't know, i use a 800x600 maximized window with 4 viewports and backbuffer without any problems...

ok. Useful snippet, BTW, thanks.