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]
change Desktop/Workspace size
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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.
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.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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:
PB - Registered PureBasic Coder
> 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
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm