comctl32: header tests: support different window border width

Mikołaj Zalewski mikolaj at zalewski.pl
Thu Mar 1 06:49:11 CST 2007


-------------- next part --------------
From 0f7a7e7a56fd9a9997aa9059ec36487ccfc4e3da Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Miko=C5=82aj_Zalewski?= <mikolaj at zalewski.pl>
Date: Thu, 1 Mar 2007 13:45:09 +0100
Subject: [PATCH] comctl32: header tests: support different window border width

---
 dlls/comctl32/tests/header.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/header.c b/dlls/comctl32/tests/header.c
index 29ef9aa..5b1234d 100644
--- a/dlls/comctl32/tests/header.c
+++ b/dlls/comctl32/tests/header.c
@@ -1052,7 +1052,9 @@ static void init(void) {
     RegisterClassA(&wc);
 
     hHeaderParentWnd = CreateWindowExA(0, "HeaderTestClass", "Header test", WS_OVERLAPPEDWINDOW, 
-      CW_USEDEFAULT, CW_USEDEFAULT, 680, 260, NULL, NULL, GetModuleHandleA(NULL), 0);
+      CW_USEDEFAULT, CW_USEDEFAULT, 672+2*GetSystemMetrics(SM_CXSIZEFRAME),
+      226+GetSystemMetrics(SM_CYCAPTION)+2*GetSystemMetrics(SM_CYSIZEFRAME),
+      NULL, NULL, GetModuleHandleA(NULL), 0);
     assert(hHeaderParentWnd != NULL);
     ShowWindow(hHeaderParentWnd, SW_SHOW);
 }
-- 
1.4.4.2


More information about the wine-patches mailing list