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

MFC: Basic question, how do i update an Edit Box dynamically ..

Status
Not open for further replies.

ShaunLim

Programmer
Aug 7, 2003
3
SG
how do i update an Edit Box dynamically from another Edit Box in another class?

I have two Modeless Dialogs, each with their own class. I need to update an Edit Box in CDlgTerm2 from an Edit Box in CDlgTerm1. I'm trying to use EN_CHANGE but the changes don't reflect.

Please help..thanks in advance!
 
Do you know how to make C++ objects interact? That’s one approach you could use. Also windows messaging could be used with user defined messages. Do you know how to do that?

-pete
 
Hi pete thanks for you reply. I'm sorry i'm quite new to MFC programming and i don't know how to do those stuff.

Maybe you can tell me the functions or methods to use and i'll read up on them?
 
Well for making Objects Interact in C++ there are no functions, you have to actually learn how to design Object Oriented C++. This takes time. It’s a little more difficult than falling off of a water truck.

For User defined messages in MFC start by looking at the documentation for ON_MESSAGE:


-pete
 
thanks pete..i solved the problem already. my mistake was that i used UpdateData(TRUE) when it should have been FALSE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top