1 #define NUM_SYSCOLORS 31
4 Test_GetTextExtentExPoint(PTESTINFO pti
)
12 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 1000, &nFit
, NULL
, &size
);
15 TEST(GetLastError() == 0);
16 printf("nFit = %d\n", nFit
);
18 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 1, &nFit
, NULL
, &size
);
21 TEST(GetLastError() == 0);
22 printf("nFit = %d\n", nFit
);
24 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 0, &nFit
, NULL
, &size
);
27 TEST(GetLastError() == 0);
29 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -1, &nFit
, NULL
, &size
);
32 TEST(GetLastError() == 0);
34 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -2, &nFit
, NULL
, &size
);
36 TEST(GetLastError() == 87);
38 return APISTATUS_NORMAL
;