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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CListView and selection

CListView and selection

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 2 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.
  • G Offline
    G Offline
    Gian
    wrote on last edited by
    #1

    Hi, i'm implementing a splitted frame window with a CListView on the top part of the window and a CFormView on the bottom. When i click on an item of the list in the form i want to visualize the informations of that element (some kind of Master/Detail logic). The problem is that when i focus in the form the selection in the CListView disappeared. If i re-focus the list the selection appears again. There's a solution to prevent this disappear? Thanks

    D 1 Reply Last reply
    0
    • G Gian

      Hi, i'm implementing a splitted frame window with a CListView on the top part of the window and a CFormView on the bottom. When i click on an item of the list in the form i want to visualize the informations of that element (some kind of Master/Detail logic). The problem is that when i focus in the form the selection in the CListView disappeared. If i re-focus the list the selection appears again. There's a solution to prevent this disappear? Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Use the LVS_SHOWSELALWAYS style.

      G 1 Reply Last reply
      0
      • D David Crow

        Use the LVS_SHOWSELALWAYS style.

        G Offline
        G Offline
        Gian
        wrote on last edited by
        #3

        Thanks, i didnt found it on MSDN ( :zzz: ), thanks again ;)

        D 1 Reply Last reply
        0
        • G Gian

          Thanks, i didnt found it on MSDN ( :zzz: ), thanks again ;)

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          It's right there with the other list view styles: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/styles.asp

          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