https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a0e5c3d862ab07d6ee8c2464caf3354c4acca960

commit a0e5c3d862ab07d6ee8c2464caf3354c4acca960
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Tue Mar 2 18:05:32 2021 +0900
Commit:     GitHub <[email protected]>
CommitDate: Tue Mar 2 18:05:32 2021 +0900

    [BROWSEUI_APITEST] Strengthen IAutoComplete testcase on extended LV style 
(#3499)
    
    Test the extended list-view style of the listview. CORE-9281
---
 modules/rostests/apitests/browseui/IAutoComplete.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/rostests/apitests/browseui/IAutoComplete.cpp 
b/modules/rostests/apitests/browseui/IAutoComplete.cpp
index 1bed8ad5369..88e74ccdc37 100644
--- a/modules/rostests/apitests/browseui/IAutoComplete.cpp
+++ b/modules/rostests/apitests/browseui/IAutoComplete.cpp
@@ -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);

Reply via email to