Results 1 to 5 of 5

Thread: "Dock" form to desktop

  1. #1

    Thread Starter
    Lively Member Geemark's Avatar
    Join Date
    Aug 2002
    Location
    At the pc wasting my worthless time
    Posts
    89

    "Dock" form to desktop

    I need is some "simple" code that, how to say, "reserves" space to the right of the screen like for instance the ICQ contact list does, to ensure that all normal windows does not overlap.

    Does anyone know how to do this? I have found huge modules that allows you to create a docking toolbar like the MS Office one that can be moved around and docked at every screen border etc. but I cannot find out how much and which code from these giant modules I should use.

    Example: http://www.pscode.com/vb/scripts/Sho...22898&lngWId=1
    Machine Language: You try to shoot yourself in
    the foot only to discover you must first reinvent the
    gun, gunpowder, the bullet, and your foot.

  2. #2
    Lively Member da_haCKEr's Avatar
    Join Date
    Oct 2002
    Location
    Paradise Isle of Sri Lanka
    Posts
    116

    Question SetWindowPos ?

    Can't you just use the SetWindowPos API function to make your form stay on top of all others ?.
    .:JanuZ:.
    .:JanuZ:.XtremeSoft


  3. #3

    Thread Starter
    Lively Member Geemark's Avatar
    Join Date
    Aug 2002
    Location
    At the pc wasting my worthless time
    Posts
    89
    SetWindowPos just adjusts the window so that it is on top. What I need is to "push" the other windows to the right so that they do not overlap, even if the other windows are maximized they must not fill the entire screen.
    Machine Language: You try to shoot yourself in
    the foot only to discover you must first reinvent the
    gun, gunpowder, the bullet, and your foot.

  4. #4
    Addicted Member
    Join Date
    Apr 2001
    Location
    Phoenix
    Posts
    150
    Check into ShAppBarMessage...

    API Declaration:

    VB Code:
    1. Public Declare Function SHAppBarMessage Lib "shell32.dll" Alias "SHAppBarMessage" (ByVal dwMessage As Long, pData As APPBARDATA) As Long
    Patience and perserverence have a magical effect before which difficulties disappear and obstacles vanish.
    John Quincy Adams

  5. #5

    Thread Starter
    Lively Member Geemark's Avatar
    Join Date
    Aug 2002
    Location
    At the pc wasting my worthless time
    Posts
    89
    I have tried to work around with that API but I cannot find out how it works entirely. Anyone??
    Machine Language: You try to shoot yourself in
    the foot only to discover you must first reinvent the
    gun, gunpowder, the bullet, and your foot.

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