OSDN Git Service

Add default handler for WM_CLOSE message.
[mingw/wtklite.git] / wndproc.cpp
index a15cc9c..0b5aeb3 100644 (file)
@@ -119,6 +119,7 @@ namespace WTK
       OnEventCase( WM_VSCROLL,        OnVerticalScroll( SplitWord(w_param), (HWND)(l_param)) );
       OnEventCase( WM_PAINT,          OnPaint() );
       OnEventCase( WM_DESTROY,        OnDestroy() );
+      OnEventCase( WM_CLOSE,          OnClose() );
     }
     /* In the event that no handler is provided for any particular message,
      * fall back to MS-Windows own default handler.