problem to draw line in list control
-
Hello every one I have to draw red mark line in to list control having grid view to show invalidate entry Can any one tell how to draw it
-
Hello every one I have to draw red mark line in to list control having grid view to show invalidate entry Can any one tell how to draw it
Hi You need to handle ListView custom draw and draw the line using the Device Context. Find ListView custom draw article in code project. Nitheesh George http://www.simpletools.co.in
-
Hi You need to handle ListView custom draw and draw the line using the Device Context. Find ListView custom draw article in code project. Nitheesh George http://www.simpletools.co.in
Thanks nitesh, Rightnow I show rectangle having invalid entry with background color in custdraw but insted of background color I want to show line on that entry. So what I can do for it....
-
Thanks nitesh, Rightnow I show rectangle having invalid entry with background color in custdraw but insted of background color I want to show line on that entry. So what I can do for it....
You need to handle the custom draw notification and draw the whole item in the control, using GDI (or GDI+) API calls. For entries that are invalid, you can then draw a red line though then using MoveTo/LineTo. For an example of a ListView custom draw, read this article[^] EDIT: This article might be better that the C# one I originally posted... Using ListView control under Win32 API[^]