|
-
August 29th, 2006, 01:52 AM
#1
Clear a dialog
Hello,
Is there any way to clear the dialog completely, i.e. to clear all its fields (set them like they were when I've opened the dialog), instead of doing it manually for each control?
-
August 29th, 2006, 02:11 AM
#2
Re: Clear a dialog
what you means if you want to clear all the field on some button click then in Button click use the Handle of your all control Present on Dialog and initialize them .Like if some edit control Then you can use SetWindowText("") with the handle of your edit control same you can do with all comtrols. but remember you have to do all of these things manually.
Thanx
-
August 29th, 2006, 06:28 AM
#3
Re: Clear a dialog
You could move the member variable initialization from the constructor into a seperate function, call it followed by UpdateData(FALSE).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|