Openwindow()

Just starting out? Need help? Post your questions and find answers here.
Lee87073
New User
New User
Posts: 4
Joined: Sun May 22, 2005 8:57 am
Location: Stourport On Severn Worcestershire

Openwindow()

Post by Lee87073 »

Hi all
Being new to windows programming i could do with a little guidance
Could somebody tell me how to open a window thats is maximised?
Thanks
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Code: Select all

ExamineDesktops()
MessageRequester("Résolution",Str(DesktopWidth(0))+"x"+Str(DesktopHeight(0)))
use this value to define the height & width
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

Try...

Code: Select all

ShowWindow_(WindowHandle, #SW_MAXIMIZE)
WindowHandle returned from WindowID(). This should maximize the window.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply