[Solved] How to tile my windows on desktop?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Addict
Addict
Posts: 1055
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

[Solved] How to tile my windows on desktop?

Post by Caronte3D »

I want to tile several windows but I'm very noob with windows calls an things like that.

If I remove the last param, the windows on the desktop (not my own) are correctly tiled, but I want to tile the windows I choose (standard windows, not mdi)

Anyone can help?

Thanks! :wink:

Code: Select all

; nw() is the array where windows numbers are stored
; nwh() is for store windows handles
  Define f
  Define size=ArraySize(nw())
  Define Dim nwh(size)
  For f=0 To size
    nwh(f)=WindowID(nw(f))
  Next
  TileWindows_(#Null,#MDITILE_HORIZONTAL|#MDITILE_VERTICAL,#Null,size,@nwh())
Last edited by Caronte3D on Thu Jan 30, 2020 11:02 am, edited 1 time in total.
User avatar
Caronte3D
Addict
Addict
Posts: 1055
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: How to tile my windows on desktop?

Post by Caronte3D »

Never mind, I was found the solution:
My windows are "topmost" (StickyWindow) ones so not be tiled as you can see on the WinAPI info about the last parameter:

Type: const HWND*
An array of handles to the child windows to arrange. If a specified child window is a top-level window with the style WS_EX_TOPMOST or WS_EX_TOOLWINDOW, the child window is not arranged. If this parameter is NULL, all child windows of the specified parent window (or of the desktop window) are arranged.
Post Reply