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
A
Ananya Sen Gupta
@Ananya Sen Gupta
Posts
-
keeping my selections in listbox -
How do I stop my view from being erased after serialising the document???OK.. I am drawing a graph in my view and then want to save the point array in my document. Problem arises when i serialise.. During run, when I try to save it, he save window comes up fine.. but the graph is erased when my view is redrawn after closing the save dialog box. I did put invalidateRect in my OnDraw function .. but didn't work!! I also added a call to UpdateAllWindows in the overriden Serialize function for my CDocument.. but still does not work!!! also, anyone knows how to obtain a pointer to the current view from CDocument?? It is what we choose to be that makes us what we are, far more than our abilities. -J.K. Rowling