Does LVS_EX_FULLROWSELECT have compatibility issues with other styles?

I am trying to set the LVS_EX_FULLROWSELECT style in a grid list control since I want the full row to be selected. However, this apparently has no effect. Since I also use a number of other styles, I wonder if LVS_EX_FULLROWSELECT has compatibility issues with other styles. Anyone? Below are the styles that I set.

Initially, the following styles are set in the base list management class:

WS_CHILD|WS_BORDER|LVS_REPORT|LVS_SHOWSELALWAYS|LVS_SINGLESEL

Then I try to set additional styles in the derived mesh management class:

ListView_SetExtendedListViewStyleEx(sysId(), 0, LVS_EX_GRIDLINES | LVS_OWNERDATA | LVS_EX_FULLROWSELECT);
+3
source share
2

- , :

ListView_SetExtendedListViewStyleEx(m_hWnd, LVS_EX_GRIDLINES | LVS_OWNERDATA | LVS_EX_FULLROWSELECT, LVS_EX_GRIDLINES | LVS_OWNERDATA | LVS_EX_FULLROWSELECT);
+4

LVM_ SETEXTENDEDLISTVIEWSTYLE LVS_EX_FULLROWSELECT (: MS).

Edit:

.

ListView_SetExtendedListViewStyle(m_hWnd, ListView_GetExtendedListViewStyle(m_hWnd), VS_EX_FULLROWSELECT);

ListView_GetExtendedListViewStyle(sysId()) 0. BTW - sysId() ? .

.

+2

Source: https://habr.com/ru/post/1759136/


All Articles