Is there any API calls available if I would like to tile or cascade a number of windows?
Printable View
Is there any API calls available if I would like to tile or cascade a number of windows?
I assume
VB Code:
Private Declare Function CascadeWindows Lib "user32" Alias "CascadeWindows" (ByVal hwndParent As Long, ByVal wHow As Long, ByVal lpRect As RECT, ByVal cKids As Long, lpkids As Long) As Integer
is what you're looking for, but I've no idea how to use it :p
No there isn't. You have to move them all manually.
Is this for forms within an MDI form?
If it is just use: Me.Arrange <value> where <value> is one of these:
vbCascade
vbTileHorizontal
vbTileVertical
vbArrangeIcons
eg:
Me.Arrange vbCascade
ok, thanx ppl, u mean that works for mdi onli?
wat about the tiling effect?
wat about the api call mentioned by rick bull?
To tile the desktop windows with this:Quote:
Private Declare Function CascadeWindows Lib "user32" (ByVal hwndParent As Long, ByVal wHow As Long, ByVal lpRect As RECT, ByVal cKids As Long, lpkids As Long) As Integer
VB Code:
Call CascadeWindows(vbNull, 0, vbNull, 0,vbNull)
See MSDN for more info on this API call...
HTH,
Duncan
anybody know wat the .tag property field is for?
What .Tag property field?
Read this:
http://www.msdn.microsoft.com/librar...l/vbprotag.asp
i see, so its like a temporary place to store anything?
It's not temporary. It's just as permanent as all the other object properties, but yes, it will store any string you like.