mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[COMCTL32_WINETEST] Addendum to r71791. CORE-11383
svn path=/trunk/; revision=71792
This commit is contained in:
parent
94977b7bd4
commit
f844461ede
|
@ -1849,6 +1849,7 @@ static void test_customdraw(void)
|
|||
{
|
||||
HWND hwnd;
|
||||
WNDPROC oldwndproc;
|
||||
LVITEMA item;
|
||||
|
||||
hwnd = create_listview_control(LVS_REPORT);
|
||||
|
||||
|
@ -1868,6 +1869,18 @@ static void test_customdraw(void)
|
|||
UpdateWindow(hwnd);
|
||||
ok_sequence(sequences, PARENT_CD_SEQ_INDEX, parent_report_cd_seq, "parent customdraw, LVS_REPORT", FALSE);
|
||||
|
||||
/* check colors when item is selected */
|
||||
SetWindowLongW(hwnd, GWL_STYLE, GetWindowLongW(hwnd, GWL_STYLE) | LVS_SHOWSELALWAYS);
|
||||
item.mask = LVIF_STATE;
|
||||
item.stateMask = LVIS_SELECTED;
|
||||
item.state = LVIS_SELECTED;
|
||||
SendMessageA(hwnd, LVM_SETITEMSTATE, 0, (LPARAM)&item);
|
||||
|
||||
flush_sequences(sequences, NUM_MSG_SEQUENCES);
|
||||
InvalidateRect(hwnd, NULL, TRUE);
|
||||
UpdateWindow(hwnd);
|
||||
ok_sequence(sequences, PARENT_CD_SEQ_INDEX, parent_report_cd_seq, "parent customdraw, LVS_REPORT, selection", FALSE);
|
||||
|
||||
DestroyWindow(hwnd);
|
||||
|
||||
hwnd = create_listview_control(LVS_LIST);
|
||||
|
|
Loading…
Reference in a new issue