Thread: Killing a window

  1. #1
    Registered User Ever1234's Avatar
    Join Date
    Dec 2001
    Posts
    30

    Killing a window

    I need to know how to kill a specific window that is specified in the coding (not just some random thing), how might I go about this (and this aint homework)

  2. #2
    Unregistered
    Guest

    Talking

    return 0;

  3. #3
    Registered User Ever1234's Avatar
    Join Date
    Dec 2001
    Posts
    30
    a different window

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    Is this windows programming?
    send the window a Close Window message.
    If it isint a windows program can you be more specific

  5. #5
    Registered User Ever1234's Avatar
    Join Date
    Dec 2001
    Posts
    30
    yup, its windows programming

    thanx

  6. #6
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    HWND hOtherWind = FindWindow(NULL, "Exact Window Title");
    SendMessage(hOtherWind, WM_CLOSE, NULL, NULL);

  7. #7
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    PostQuitMessage(0);

    I think that's what u want

  8. #8
    Registered User Ever1234's Avatar
    Join Date
    Dec 2001
    Posts
    30
    Ken had it, thanks you guys
    "The world has seen the state of our union, AND IT IS STRONG"

    -- George Bush

  9. #9
    Registered User Ever1234's Avatar
    Join Date
    Dec 2001
    Posts
    30
    what headers would I need to do this?
    "The world has seen the state of our union, AND IT IS STRONG"

    -- George Bush

  10. #10
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    <windows.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM