PDA

View Full Version : Controling a Property Page in a Wizard - MFC


Larry A Mill Sr
11-08-2007, 06:12 PM
I am working a program and desparately need some help with it. The program will handle the maintenance and scheduling of maintenance for around 30 vehicles. I have it mostly written; but with problems.
There is presented to the User a Wizard with about 11 pages within, where the User selects what work was performed(maintenance) on the vehicle. Now the problem:
Each page of the wizard contains 8 – 10 EditBoxes with instructions as to what is to go in each separate EditBox. There is nothing else on the page besides the EditBoxes (no buttons, etc)


How do I know what editboxes have data in them and how do I get that data before the User selects [Next] or [Back] on the wizard?
EN_SETFOCUS and EN_CHANGED will let me know the focus is on a certain editbox, but that’s all – how do I get the data when the User is finished? I need a function that would maintain control of the page’s use while active. A simple “OnCommand” function would relay the messages where I could jump to a function and handle that need; but there is no “OnCommand” function for a property page!
Any ideas on how to take control and maintain control of a page while active?
I desparately need your input immediately if possible.

Ajmukon
11-08-2007, 06:16 PM
how are you writing the program? C++, C#, basic, html...?
-this will help others (i only took 1/2 year of programing so i really can't help- but there are others on this forum who can)

yawningdog
11-09-2007, 08:26 AM
First of all, welcome. Second, I do believe you've chosen the wrong forum. I'm not trying to impugn the skill set of the members here, but this forum is mainly hardware focused. I've dabbled in Visual Studio, but not nearly enough to be of any assistance.

What programmers I do know have given me this advice. Microsoft foundation classes suck, write programs for the CLR.

Good Luck. :)

Paul Komski
11-10-2007, 05:53 AM
I tend to agree with yawningdog that if you are using other than scripting languages you are unlikely to get a lot of help here - but you never know. I would maybe also ask at somewhere like http://www.programmersheaven.com/mb/

The CLR (http://en.wikipedia.org/wiki/Common_Language_Runtime) is a good idea if you are going to keep MS-orientated.