[COMCTL32] toolbar: Use szBarPadding.cy as the default top margin
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 29 Jan 2018 15:51:06 +0000 (17:51 +0200)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Mon, 29 Jan 2018 15:51:06 +0000 (17:51 +0200)
dll/win32/comctl32/toolbar.c

index c2befb2..949eadb 100644 (file)
@@ -256,7 +256,7 @@ static inline int default_top_margin(const TOOLBAR_INFO *infoPtr)
 {
 #ifdef __REACTOS__
     if (infoPtr->iVersion == 6)
-        return 0;
+        return infoPtr->szBarPadding.cy;
 #endif
     return (infoPtr->dwStyle & TBSTYLE_FLAT ? 0 : TOP_BORDER);
 }