2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for GetTextExtentExPoint
5 * PROGRAMMERS: Timo Kreuzer
12 #define TEST(x) ok(x, #x)
13 #define RTEST(x) ok(x, #x)
15 void Test_GetTextExtentExPoint()
23 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 1000, &nFit
, NULL
, &size
);
26 TEST(GetLastError() == 0);
27 printf("nFit = %d\n", nFit
);
29 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 1, &nFit
, NULL
, &size
);
32 TEST(GetLastError() == 0);
33 printf("nFit = %d\n", nFit
);
35 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 0, &nFit
, NULL
, &size
);
38 TEST(GetLastError() == 0);
40 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -1, &nFit
, NULL
, &size
);
43 TEST(GetLastError() == 0);
45 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -2, &nFit
, NULL
, &size
);
47 TEST(GetLastError() == 87);
49 result
= GetTextExtentExPointW(GetDC(0), L
"test", 4, -10, &nFit
, NULL
, &size
);
52 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -10, &nFit
, NULL
, &size
);
56 START_TEST(GetTextExtentExPoint
)
58 Test_GetTextExtentExPoint();