[BROWSEUI_APITEST] Strengthen IAutoComplete testcase on extended LV style (#3499)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 2 Mar 2021 09:05:32 +0000 (18:05 +0900)
committerGitHub <noreply@github.com>
Tue, 2 Mar 2021 09:05:32 +0000 (18:05 +0900)
Test the extended list-view style of the listview. CORE-9281

modules/rostests/apitests/browseui/IAutoComplete.cpp

index 1bed8ad..88e74cc 100644 (file)
@@ -453,6 +453,16 @@ DoTestCaseA(INT x, INT y, INT cx, INT cy, LPCWSTR pszInput,
         ok(style == LIST_STYLE_2, "style was 0x%08lx\n", style);
     ok_long(exstyle, 0);
     ok_long((LONG)id, 0);
+#define LIST_EXTENDED_LV_STYLE_1 \
+    (LVS_EX_DOUBLEBUFFER | LVS_EX_ONECLICKACTIVATE | \
+     LVS_EX_FULLROWSELECT | LVS_EX_TRACKSELECT) // 0x10068
+#define LIST_EXTENDED_LV_STYLE_2 \
+    (LVS_EX_ONECLICKACTIVATE | LVS_EX_FULLROWSELECT | \
+     LVS_EX_TRACKSELECT) // 0x68
+    exstyle = ListView_GetExtendedListViewStyle(hwndList);
+    ok(exstyle == LIST_EXTENDED_LV_STYLE_1 /* Win10 */ ||
+       exstyle == LIST_EXTENDED_LV_STYLE_2 /* WinXP/Win2k3 */,
+       "exstyle was 0x%08lx\n", exstyle);
 
     // no more controls
     hwndNone = GetNextWindow(hwndList, GW_HWNDNEXT);