Commit 193d13c4 authored by Peter Urbanec's avatar Peter Urbanec Committed by Alexandre Julliard

comctl32/tests: Enable statusbar tooltip tests.

parent 4f77b003
...@@ -261,7 +261,7 @@ static void test_status_control(void) ...@@ -261,7 +261,7 @@ static void test_status_control(void)
char ch; char ch;
char chstr[10] = "Inval id"; char chstr[10] = "Inval id";
hWndStatus = create_status_control(WS_VISIBLE, 0); hWndStatus = create_status_control(WS_VISIBLE | SBT_TOOLTIPS, 0);
/* Divide into parts and set text */ /* Divide into parts and set text */
r = SendMessage(hWndStatus, SB_SETPARTS, 3, (LPARAM)nParts); r = SendMessage(hWndStatus, SB_SETPARTS, 3, (LPARAM)nParts);
...@@ -400,15 +400,12 @@ static void test_status_control(void) ...@@ -400,15 +400,12 @@ static void test_status_control(void)
expect(FALSE,r); expect(FALSE,r);
/* Set the ToolTip text */ /* Set the ToolTip text */
todo_wine
{
SendMessage(hWndStatus, SB_SETTIPTEXT, 0,(LPARAM) "Tooltip Text"); SendMessage(hWndStatus, SB_SETTIPTEXT, 0,(LPARAM) "Tooltip Text");
lstrcpyA(charArray, "apple"); lstrcpyA(charArray, "apple");
SendMessage(hWndStatus, SB_GETTIPTEXT, MAKEWPARAM (0, 20),(LPARAM) charArray); SendMessage(hWndStatus, SB_GETTIPTEXT, MAKEWPARAM (0, 20),(LPARAM) charArray);
ok(strcmp(charArray,"Tooltip Text") == 0 || ok(strcmp(charArray,"Tooltip Text") == 0 ||
broken(!strcmp(charArray, "apple")), /* win95 */ broken(!strcmp(charArray, "apple")), /* win95 */
"Expected Tooltip Text, got %s\n", charArray); "Expected Tooltip Text, got %s\n", charArray);
}
/* Make simple */ /* Make simple */
SendMessage(hWndStatus, SB_SIMPLE, TRUE, 0); SendMessage(hWndStatus, SB_SIMPLE, TRUE, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment