Results 1 to 3 of 3

Thread: wm_Close vs. wm_Destroy

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Is it true that wm_Destroy destroys the Process ID first while wm_Close closes the application first?
    Chemically Formulated As:
    Dr. Nitro

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I think that WM_CLOSE is sent when the user chooses to close the window, ie clicking the X at the top right, this causes the Window to check that the window definatley needs closing (ie put up an "Are you sure you want to Exit?" message box. WM_DESTROY is sent to the window after it is closed, as a sort of "goodbye, Make sure it's all wrapped up with no memory Leaks"

  3. #3
    Guest
    WM_DESTORY is sent to the window procedure of the window being destroyed after the window is removed from the screen. WM_CLOSE is sent as a signal that a window or an application should terminate.

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