COMCTL32: handle WM_NCCALCSIZE in the tab control
Mike McCormack
mike at codeweavers.com
Thu May 12 01:22:08 CDT 2005
ChangeLog:
<aric at codeweavers.com>
* handle WM_NCCALCSIZE in the tab control
-------------- next part --------------
Index: dlls/comctl32/tab.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tab.c,v
retrieving revision 1.108
diff -u -p -r1.108 tab.c
--- dlls/comctl32/tab.c 13 Apr 2005 14:40:12 -0000 1.108
+++ dlls/comctl32/tab.c 12 May 2005 06:22:36 -0000
@@ -2961,9 +2961,16 @@ TAB_Destroy (TAB_INFO *infoPtr)
return 0;
}
+static LRESULT TAB_NCCalcSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
+{
+ if (!wParam)
+ return 0;
+ return WVR_ALIGNTOP;
+}
+
static inline LRESULT
TAB_SetItemExtra (TAB_INFO *infoPtr, INT cbInfo)
-{
+{
if (!infoPtr || cbInfo <= 0)
return FALSE;
@@ -3142,6 +3149,9 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WP
return TAB_KeyUp(infoPtr, wParam);
case WM_NCHITTEST:
return TAB_NCHitTest(infoPtr, lParam);
+
+ case WM_NCCALCSIZE:
+ return TAB_NCCalcSize(hwnd, wParam, lParam);
default:
if (uMsg >= WM_USER && uMsg < WM_APP)
More information about the wine-patches
mailing list