Fixed resizing bugs for windows with WS_THICKFRAME and WS_DLGFRAME
styles.

diff --git a/windows/nonclient.c b/windows/nonclient.c
index beb10f8..60428f6 100644
--- a/windows/nonclient.c
+++ b/windows/nonclient.c
@@ -63,7 +63,7 @@
 
 #define HAS_THICKFRAME(style,exStyle) \
     (((style) & WS_THICKFRAME) && \
-     !((exStyle) & WS_EX_DLGMODALFRAME))
+     !(((style) & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME))
 
 #define HAS_THINFRAME(style) \
     (((style) & WS_BORDER) || !((style) & (WS_CHILD | WS_POPUP)))