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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update data in client window

Status
Not open for further replies.

scienzia

Programmer
Feb 21, 2002
160
IT
I have a CPropertySheet that is a client window of a main window.
I added the pages to the CPropertySheet and everything works fine.
The problem is that when I call the UpdateData function on the main window the data in the client window is not updated.
The UpdateData function on the property sheet or on the property pages gives assert error.

Is there a way to make the update data work on child windows?
 
You need to call UpdateData() on each property page.
Presumably you have your property pages as member variables of your property sheet. If so, you can use UpdateData() from you property sheet like this:

m_pMyPropPage->UpdateData(FALSE);
(I'm assuming here that your members are pointers)

so from you main window, you can do a similar thing:

m_pMyPropSheet->m_pMyPropPage->UpdateData(FALSE);

Obviously, you'll need to make sure these members are acessible from the main window class.

CMR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top