Auto-Populating with MFC (C++)

KeyserSoze

Diamond Member
Oct 11, 2000
6,048
1
81
So here's my dilemma. I have about four fields on a form, written in MFC, and when the user enters the data in the first field, I want it to go out to a text file, and auto-populate the rest of the information. Now reading from the file isn't the hard part. But I'm stumped as to how I would go about this. When the user fields out the first field, and hits the "Tab" key, I need it to generate the rest of the information.

Anyone have any links that can guide me in the right direction? Or any advice? I've been searching through Google, and am having a hard time with this one.

TIA



KeyserSoze
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
i assume the fields are edit boxes? look for the control notification messages EN_CHANGE (on text change) or EN_KILLFOCUS(on focus lost). mfc should have some wizard or something under the properies window (in vs.net) to set event handlers for those.