Subclassing SysListView32 in activex control problem
-
Hello, I'm creating a new activex control using MFC ActiveX control wizard. my activex control subclasses SysListView32. Everything works except for drawing the control when i use WS_EX_CLIENTEDGE style. If i don’t call this function DoSuperclassPaint(pdc, rcBounds); the items in the control are not painted, but the column header is visible. If I do call this function, the items are painted, but there is an extra line below the column header and when you scroll there are lines going across the control where that it extra line was painted. It seems line the control dc is shifted 2 pixel right and 2 pixels down. When I dont use WS_EX_CLIENTEDGE style everything is fine. expect there is not 3d appearance. If anyone knows how to solve this problem PLEASE HELP. Thank you Ilya