Hey Guys,
I know how to get the clientarea of the screen and my program automatically uses that information when opened, but it still isn't the same when I press afterwards maximise.
How can I get my window to automatically maximise at startup ? without having to press the button in the right top corner.
Thanks for your ideas.
How to maximize my program's window at start ?
try something like:
Code: Select all
ShowWindow_(WindowID(), #SW_MAXIMIZE)
Thanks for the quick reply
I think this api call should be also on the FAQ, which I checked out before writing my request here.
Re: Thanks for the quick reply
of course not...JoJo wrote:I think this api call should be also on the FAQ, which I checked out before writing my request here.
And the 20000 other API calls also?

This is not a PureBasic command, there are tons of API resources available on the internet.
JoJo,
Heres a full example:
What you really need is the AllAPI guide http://www.mentalis.org/agnet/apiguide.shtml
Heres a full example:
Code: Select all
If OpenWindow(0, 234, 140, 600, 300, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_Invisible, "New window ( 0 )")
ShowWindow_(WindowID(),#SW_Maximize)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
-
- Addict
- Posts: 1073
- Joined: Fri Apr 25, 2003 11:13 pm
- Location: Netherlands
- Contact: