Dialog controls / member variables
Posted on 1998-11-13
I currently use the classwizard to add menber variables to the different controls I have within a dialog box. For example I would create a member variable like let's say "m_HkdBid1" which would be linked to an edit box.
Now the problem I have is that in some dialog boxes, I have a lot of edit boxes which I have to initialize one by one and it is not very efficient. I would like to declare my control name and member variables names as part as an array so that I can later use a fast loop to initialize them. But at the moment class wizard would not let me name a member variable something like m_HkdBid (it seems the square brackets are illegal characters in this case). Same question with the name of the controls. So in short, how can I declare controls' name and member variables names which are part of an array of data ?