Mikołaj Zalewski : comctl32: header tests: Support different window border width.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 1 16:27:07 CST 2007
Module: wine
Branch: master
Commit: beff84c1d3b96961f1ce5848ee0bf221e98decb8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=beff84c1d3b96961f1ce5848ee0bf221e98decb8
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Thu Mar 1 13:45:09 2007 +0100
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);
}
More information about the wine-cvs
mailing list