change Desktop/Workspace size

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

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

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

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

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

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

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

THANKS JUSTIN !!

Thats exactly what i was looking for...

thanks,
...Danilo

(registered PureBasic user)
Post Reply