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