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!

Selective response to UpdateData()

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!
The problem is this..i have a dialog based application in which one section of the dialog continually needs to be refreshed to reflect the status of certain parameters. However the other side concurrently accepts user input through an edit box.
As the result of the continual Updatedata(FALSE) (which is meant for one section of the box), the data from the edit box into which i input data, periodically disappears making it impossible for me to enter the data (unless i can do it at superhuman speeds!).
I was wondering if there was a way that i could make an edit box or any element in general respond selecively to UpdateData(), (TRUE or FALSE..whatever). Any solutions/alternative ideas ? Thx.
 
hi,
I believe you can not achive what you want with UpdateData() because it has no way to know which control you want to change.
try to use GetDlgItem to get a CWnd pointer to that control(CEdit or whatever), through that pointer, you can change whatever you want.

this is my first post, I hope it can help.

Hank

 
Hi

What about removing the Edit box of the OnDataExchange schema, using OnChange handler of the EditBox and, in that handler, GetDlgItemText() or GetDlgItemInt()....

HTH

Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top