Kajzer
Kajzer

Reputation: 2385

How do I get cells in List Control to have a border?

I need to get something like this: enter image description here

But I've been stuck looking for a solution for 2 hours now.

Upvotes: 0

Views: 944

Answers (1)

dwo
dwo

Reputation: 3636

The lines are just an additional style to set:

DWORD dwStyle = m_list.GetExtendedStyle();
dwStyle |= LVS_EX_GRIDLINES;
m_list.SetExtendedStyle(dwStyle);

Upvotes: 4

Related Questions