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. keeping my selections in listbox

keeping my selections in listbox

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    Ananya Sen Gupta
    wrote on last edited by
    #1

    I am creating listbox, where the user can select one or more items. I wnat my software to be such that even after the user makes the selections, clicks OK, and then opens the same dialog (with the listbox in it), he/she would see tha last selections made highlighted in the listbox. In short I want the listbox to show the last chosen settings. How do I do that?? It is what we choose to be that makes us what we are, far more than our abilities. -J.K. Rowling

    T 1 Reply Last reply
    0
    • A Ananya Sen Gupta

      I am creating listbox, where the user can select one or more items. I wnat my software to be such that even after the user makes the selections, clicks OK, and then opens the same dialog (with the listbox in it), he/she would see tha last selections made highlighted in the listbox. In short I want the listbox to show the last chosen settings. How do I do that?? It is what we choose to be that makes us what we are, far more than our abilities. -J.K. Rowling

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      You should store the selection in CYourDlg::OnOK, and re-load it in CYourDlg::OnInitDialog (after the call to CDialog::OnInitDialog). Do you use item data in listbox? Tomasz Sowinski -- http://www.shooltz.com

      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