C / C++ / MFC
|The Add Variable wizard does not support what you want to do.
However, you can add the variables manually to get at what you're trying to do.
For the first text box, right click and select
Then select the datatype as
int and enter the name of the variable as
After this, open the dialog header file and change the member variable from
int m_chan; to
Now open the dialog source file and make the following changes -
At the dialog constructor remove the line
DoDataExchange function, remove the line
DDX_Text(pDX, IDC_EDIT1, m_chan); and add the following lines -
DDX_Text(pDX, IDC_EDIT1, m_chan);
DDX_Text(pDX, IDC_EDIT2, m_chan);
DDX_Text(pDX, IDC_EDIT3, m_chan);
DDX_Text(pDX, IDC_EDIT4, m_chan);
DDX_Text(pDX, IDC_EDIT5, m_chan);
DDX_Text(pDX, IDC_EDIT6, m_chan);
DDX_Text(pDX, IDC_EDIT7, m_chan);
DDX_Text(pDX, IDC_EDIT8, m_chan);
Here, replace the IDs of the edit boxes to the appropriate IDs.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
Copyright © CodeProject
All Rights Reserved.