Results 1 to 11 of 11

Thread: API call

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332

    API call

    Is there any API calls available if I would like to tile or cascade a number of windows?

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I assume

    VB Code:
    1. 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

  3. #3
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    uk
    Posts
    327
    No there isn't. You have to move them all manually.

  4. #4
    Si_the_geek
    Guest
    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

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332
    ok, thanx ppl, u mean that works for mdi onli?

    wat about the tiling effect?

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332
    wat about the api call mentioned by rick bull?

  7. #7
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    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
    To tile the desktop windows with this:
    VB Code:
    1. Call CascadeWindows(vbNull, 0, vbNull, 0,vbNull)

    See MSDN for more info on this API call...

    HTH,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332
    anybody know wat the .tag property field is for?

  9. #9
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    uk
    Posts
    327
    What .Tag property field?

    Read this:

    http://www.msdn.microsoft.com/librar...l/vbprotag.asp
    Last edited by ChiefRB; May 18th, 2002 at 09:39 AM.

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    332
    i see, so its like a temporary place to store anything?

  11. #11
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    uk
    Posts
    327
    It's not temporary. It's just as permanent as all the other object properties, but yes, it will store any string you like.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width