mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2025-05-10 08:40:41 +08:00
21 lines
657 B
C
21 lines
657 B
C
/*
|
|
* The following code destroies all resource used by the main window
|
|
* and then destroies the main window itself.
|
|
*/
|
|
case MSG_CLOSE:
|
|
/* Destroy the resource used by the main window. */
|
|
DestroyLogFont (logfont1);
|
|
DestroyLogFont (logfont2);
|
|
DestroyLogFont (logfont3);
|
|
|
|
/* Destroy the child windows. */
|
|
DestroyWindow(hWndButton);
|
|
DestroyWindow(hWndEdit);
|
|
|
|
/* Destroy the main window. */
|
|
DestroyMainWindow (hWnd);
|
|
|
|
/* Send a MSG_QUIT message to quit the message loop. */
|
|
PostQuitMessage(hWnd);
|
|
return 0;
|