program closer

This is a discussion on program closer within the Windows Programming forums, part of the Platform Specific Boards category; i have created a program that lets the user enter the partial name of a window to close it (mainly ...

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    program closer

    i have created a program that lets the user enter the partial name of a window to close it (mainly for closing microsoft internet explorer) but when i try to close microsoft internet explorer by sending a WM_DESTROY message to it only gets rid of the contents of microsoft internet explorer and leaves the rest of the window unresponsive. my program uses EnumWindows and tests to see if the name of the window includes microsoft internet explorer and if so sends a WM_DESTROY message.any ideas?
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    There was an link on hooking that I think zen posted a while ago.....the guy that wrote it set his examples to avoid any explorer window as he said trying to interfere with them was problematic..... I cant remember exact details........

    Try posting some code...

  3. #3
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    here's the code. feel free to improve
    Attached Files Attached Files
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  2. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21