Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problem to draw line in list control

problem to draw line in list control

Scheduled Pinned Locked Moved C / C++ / MFC
csshelptutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shashankacharya
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • S shashankacharya

      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

      N Offline
      N Offline
      Nitheesh George
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • N Nitheesh George

        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

        S Offline
        S Offline
        shashankacharya
        wrote on last edited by
        #3

        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....

        R 1 Reply Last reply
        0
        • S shashankacharya

          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....

          R Offline
          R Offline
          Rotted Frog
          wrote on last edited by
          #4

          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[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups