Results 1 to 6 of 6

Thread: Minimize a window and keep it there?

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    Minimize a window and keep it there?

    Is there a way to minimize a window and keep it minimized? The reason I am asking is I am using netzero right now and this ad window is really annoying me. When i move it off the screen it pops right back... is this possible?
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    You can hide that window if you want to. If you want then.. I wrote a program that hides and shows a window. There are also some other function too. You can download it here if you want to(it is eventually open source)

    http://www.planetsourcecode.com/vb/s...=TRUE&lngWId=1
    Baaaaaaaaah

  3. #3

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Yeah, but isn't there an API call or something I can use?
    Alcohol & calculus don't mix.
    Never drink & derive.

  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    The only way I can find is terminating the process if you like to
    Baaaaaaaaah

  5. #5

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    I found this in a thread, I don't know if it keeps the window minimized but it does do it once.

    Code:
    #include <windows.h>
    ...
    HWND h = FindWindow(NULL,"caption");
    ShowWindow(h,0);  /*or use SW_HIDE, try both*/
    Alcohol & calculus don't mix.
    Never drink & derive.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you use a timer then you can keep checking for the window and hide it if it appears.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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