reset dialog box
-
I want to have a reset button on my dialog box which restore the control values to their original values.Any clue which function shud I call in the reset button function??
-
I want to have a reset button on my dialog box which restore the control values to their original values.Any clue which function shud I call in the reset button function??
-
I want to have a reset button on my dialog box which restore the control values to their original values.Any clue which function shud I call in the reset button function??
I'd store the default values in an XML file that you'd load at the beginning and then you'll have to reset each component one by one. The best automated thing you can do is to group all the edit box to have their resource id consequtive so the you'll be able to do in case you want to reset them: for(int i = iFirstResId; i <= iLastResId; i++) SetDlgItemText(i, ""); Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
I want to have a reset button on my dialog box which restore the control values to their original values.Any clue which function shud I call in the reset button function??
Or use the UpdateData function sending in the right parameter (I can never remember if it's TRUE or FALSE). As long as you haven't called it yet to update the variables, calling it with the right parameter will put whatever the variables' value are back in the controls My articles www.stillwaterexpress.com BlackDice
-
I want to have a reset button on my dialog box which restore the control values to their original values.Any clue which function shud I call in the reset button function??
If you've designed it properly, my suggestion would be to simply click the Cancel button and then open the dialog up again. All of the initial (default) values will be present at that point and you will not have had to resort to some "reset" button.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb