Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy28-Feb-04 1:21
Diddy28-Feb-04 1:21 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy29-Feb-04 8:52
Diddy29-Feb-04 8:52 
GeneralRe: How to fix the 2nd dialog from moving? Pin
siew hoon2-Mar-04 3:04
siew hoon2-Mar-04 3:04 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy2-Mar-04 8:30
Diddy2-Mar-04 8:30 
GeneralRe: How to fix the 2nd dialog from moving? Pin
siew hoon3-Mar-04 1:45
siew hoon3-Mar-04 1:45 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy3-Mar-04 2:53
Diddy3-Mar-04 2:53 
GeneralRe: How to fix the 2nd dialog from moving? Pin
siew hoon6-Mar-04 16:24
siew hoon6-Mar-04 16:24 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy8-Mar-04 8:23
Diddy8-Mar-04 8:23 
Hi Siew,

That was done a bit quicky and is slightly wrong I belive. It really depends what you wish to do - if you want an araay of the actual CEdit's you do this:

CEdit m_arrEdit[10];

Then for each one:

DDX_Control(pDX, IDC_EDIT1, m_arrEdit[0])
DDX_Control(pDX, IDC_EDIT2, m_arrEdit[1])
DDX_Control(pDX, IDC_EDIT3, m_arrEdit[2])



Where as if you are intreseted in just the Text in the edit controls, you use an array of CStrings:

CString m_strEditArray[10];

DDX_Text(pDX, IDC_EDIT1, m_strEditArray[0])
DDX_Text(pDX, IDC_EDIT2, m_strEditArray[1])
DDX_Text(pDX, IDC_EDIT3, m_strEditArray[2])

Etc.

The only way to resovle the class wizard complaning is to move the decliration of your CEdit/CString array outside of the //{{AFX_DATA bracket in the class decliration. ClassWizard cant cope with arrays of controls/strings etc
GeneralRe: How to fix the 2nd dialog from moving? Pin
siew hoon13-Mar-04 0:55
siew hoon13-Mar-04 0:55 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy14-Mar-04 3:25
Diddy14-Mar-04 3:25 
GeneralRe: How to fix the 2nd dialog from moving? Pin
siew hoon21-Mar-04 0:41
siew hoon21-Mar-04 0:41 
GeneralRe: How to fix the 2nd dialog from moving? Pin
siew hoon21-Mar-04 0:37
siew hoon21-Mar-04 0:37 
GeneralRe: How to fix the 2nd dialog from moving? Pin
Diddy21-Mar-04 8:17
Diddy21-Mar-04 8:17 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo1-Feb-04 15:07
kimsangwoo1-Feb-04 15:07 
GeneralFatal error Pin
Goh Hui Beng1-Feb-04 14:47
Goh Hui Beng1-Feb-04 14:47 
GeneralRe: Fatal error Pin
Cloaca1-Feb-04 17:56
Cloaca1-Feb-04 17:56 
GeneralRe: Fatal error Pin
PengFeidu1-Feb-04 18:10
PengFeidu1-Feb-04 18:10 
GeneralSlider on CDialogBar Pin
Ziban1-Feb-04 14:37
Ziban1-Feb-04 14:37 
GeneralRe: Slider on CDialogBar Pin
Robert A. T. Káldy2-Feb-04 13:31
Robert A. T. Káldy2-Feb-04 13:31 
QuestionAnyone have a simple line drawing program? Pin
getz531-Feb-04 13:36
getz531-Feb-04 13:36 
AnswerRe: Anyone have a simple line drawing program? Pin
Cloaca1-Feb-04 17:34
Cloaca1-Feb-04 17:34 
GeneralRe: Anyone have a simple line drawing program? Pin
getz532-Feb-04 1:31
getz532-Feb-04 1:31 
GeneralRe: Anyone have a simple line drawing program? Pin
Cloaca2-Feb-04 5:42
Cloaca2-Feb-04 5:42 
GeneralFlexgrid and Clipboard Pin
fk1511-Feb-04 12:11
fk1511-Feb-04 12:11 
QuestionHow to hide ".lnk" (shortcuts) in CFileDialog? Pin
julych1-Feb-04 11:34
julych1-Feb-04 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.