Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking if a Property Page is Dirty.

Status
Not open for further replies.

Smeghead

MIS
Jun 6, 2002
3
US
Hi All,

I hope you can help. I'm using an MFC Property Page to allow my users to enter data. However, do to the way the page is implemented they can use the same page for any number or records (they select the record the want from a List Box on the page).

What I want to is to be able to see if the user has updated the data in the page in other but not applied the changes. So if they decide to move to another record or click the new button I can say "This page has been modified ....".

I know there is an isDirty flag but I can't seem to get access to it, or am I barking up the wrong tree.

Any help on this would be welcome.
 
Hi,

I assume from your comments that you have some sort of list of records used with this page. If this is corrent then can't you check you list's data against that of the property sheet? and if they don't match then the implication is that it has been modified.

You can then use this information to prompt the user as to the action they want to take. I've heard of the flag you are refering to but don't think it's available in property pages. However, I may be wrong. (Nothing unusual there!)

HTH
William
Software Engineer
ICQ No. 56047340
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top