Thread: Wm_close Wm_destroy Wm_quit

  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267

    Wm_close Wm_destroy Wm_quit

    What's the difference between those 2?

  2. #2

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Most programs use this code snippet:
    Code:
    	case WM_DESTROY:
    		DeleteTrayIcon();
    		PostQuitMessage (0);
    		break;
    So, exiting the program is as easy as DestroyWindow(hwnd);
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed