Page 1 of 1
Posted: Mon Jun 24, 2002 2:57 pm
by BackupUser
Restored from previous forum. Originally posted by crono.
Hello folks !
does anybody know how to change the size all windows use as maximized?
i mean something like the Taskbar. you can select if it should stay where it is, or set in in the background. if you select that it should stay on top, the maximized size shrinks to screensize - taskbar size.
anybody know a function which could do this?
kind regards,
Alexander Schoenfeld
Email: [url]mailto:
alexander.schoenfeld@chronologic.de[/url]
Posted: Mon Jun 24, 2002 5:43 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.
Hi Alexander,
if you mean to find out if the taskbar is hidden or the size/position of it, so you can maximize your window to a logical position/size look at Paul's site.
There you will find some old snippets of mine. The one you can look at it is 'APPBARINFO'.
Hope it works with the actual PureBasic version. (sure you have to delete lines like InitGadget etc.)
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Posted: Mon Jun 24, 2002 6:47 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.
I also need the info how to change the size
of the workspace, but i´ve never seen this
info somewhere.
cya,
...Danilo
(registered PureBasic user)
Posted: Mon Jun 24, 2002 8:35 pm
by BackupUser
Restored from previous forum. Originally posted by Justin.
look at the SystemParametersInfo api, the SPI_SETWORKAREA parameter sets the working area if that is what you want.
Posted: Tue Jun 25, 2002 3:22 am
by BackupUser
Restored from previous forum. Originally posted by PB.
> does anybody know how to change the size all windows use as maximized?
I'm not sure what you mean with the Taskbar info, but this procedure will
maximize all visible windows on the Desktop:
Code: Select all
Procedure MaximizeAll()
r=GetWindow_(GetDesktopWindow_(),#GW_CHILD) ; Get first window.
Repeat
If IsWindowVisible_(r)=#TRUE ; Is window visible?
ShowWindow_(r,#SW_MAXIMIZE) ; Maximize it!
EndIf
r=GetWindow_(r,#GW_HWNDNEXT) ; Get next window.
Until r=0 ; All windows done.
EndProcedure
;
MaximizeAll() ; Call the procedure!
PB - Registered PureBasic Coder
Posted: Tue Jun 25, 2002 4:46 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.
THANKS JUSTIN !!
Thats exactly what i was looking for...
thanks,
...Danilo
(registered PureBasic user)