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. Windows API
  4. subitem select & edit

subitem select & edit

Scheduled Pinned Locked Moved Windows API
databasecsharpc++cssjson
3 Posts 2 Posters 7 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.
  • D Offline
    D Offline
    Dmitri Novikov
    wrote on last edited by
    #1

    Hello! I'm programming a database application in VC++ 2010 purely on Win32 API and DB classes. I started using ListView common control for showing tables data. I plan also support for any SELECT queries, and also - support for editing data right in the grid. But... ListView is messed around items, but not subitems. I can't select subitemes. Nor I can edit their values right in the grid. Is there a way to avoid this bottleneck? Maybe subclassing a window will be a hit? If someone will give some hints, maybe post links to some useful resources, I will appreciate this! NB! Don't wanna move to .NET or С++ Builder, as one of my goals when I started this project was to maintaim my WinAPI skills!

    L 1 Reply Last reply
    0
    • D Dmitri Novikov

      Hello! I'm programming a database application in VC++ 2010 purely on Win32 API and DB classes. I started using ListView common control for showing tables data. I plan also support for any SELECT queries, and also - support for editing data right in the grid. But... ListView is messed around items, but not subitems. I can't select subitemes. Nor I can edit their values right in the grid. Is there a way to avoid this bottleneck? Maybe subclassing a window will be a hit? If someone will give some hints, maybe post links to some useful resources, I will appreciate this! NB! Don't wanna move to .NET or С++ Builder, as one of my goals when I started this project was to maintaim my WinAPI skills!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Unfortunately the ListView does not offer this functionality so you would need to use subclassing to add it yourself. Alternatively you could try a Google search to see if anyone has implemented a GridView in pure Win32. Our Great Leader[^] has done one in MFC[^] so you could take a look at that and see if it can be adapted to your needs.

      Programming is work, it isn't finger painting. Luc Pattyn

      D 1 Reply Last reply
      0
      • L Lost User

        Unfortunately the ListView does not offer this functionality so you would need to use subclassing to add it yourself. Alternatively you could try a Google search to see if anyone has implemented a GridView in pure Win32. Our Great Leader[^] has done one in MFC[^] so you could take a look at that and see if it can be adapted to your needs.

        Programming is work, it isn't finger painting. Luc Pattyn

        D Offline
        D Offline
        Dmitri Novikov
        wrote on last edited by
        #3

        Richard, thanks for the link! I never wrote MFC-based programs, but I think that I can borrow some ideas from there. Now I start thinking that I can get rid of the Header Common Contol and draw the contents of the table all by my self, not worring only of the grid headers.

        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