Click here to Skip to main content
15,914,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Resizing Pin
User 110607-Jul-01 5:05
User 110607-Jul-01 5:05 
GeneralRe: Dialog Resizing Pin
7-Jul-01 9:35
suss7-Jul-01 9:35 
GeneralRe: Dialog Resizing Pin
Christian Graus8-Jul-01 2:27
protectorChristian Graus8-Jul-01 2:27 
GeneralAttaching variables to a control Pin
6-Jul-01 13:16
suss6-Jul-01 13:16 
GeneralRe: Attaching variables to a control Pin
6-Jul-01 15:00
suss6-Jul-01 15:00 
GeneralRe: Attaching variables to a control Pin
6-Jul-01 15:30
suss6-Jul-01 15:30 
GeneralRe: Attaching variables to a control Pin
6-Jul-01 16:01
suss6-Jul-01 16:01 
GeneralRe: Attaching variables to a control Pin
6-Jul-01 16:26
suss6-Jul-01 16:26 
OK, let me see if I can clear this up. If I'm going to use Class Wizard what I would do is after I've added the control to the dialog I'd start class wizard. I'd go to the Member Variables tab, click on the ID of the edit control and click the Add Variable button. This would create a variable and link it to the edit control so that I could call UpdateData() to send and recieve the text of the control.

That explains what I'm trying to do now I'll tell you how I've been trying to do it. I added a member variable to the dialog, initialized it in the dialogs constructor, and then added a line like
DDX_Text(pDX, IDC_EDIT1, integer);
to DoDataExchange(). IDC_EDIT1 is the control ID and integer is the variable that I'm trying to link to it. As far as I can tell this is exactly what Class Wizard does.

GeneralRe: Attaching variables to a control Pin
6-Jul-01 16:46
suss6-Jul-01 16:46 
GeneralRe: Attaching variables to a control Pin
6-Jul-01 17:03
suss6-Jul-01 17:03 
GeneralRe: Attaching variables to a control Pin
Michael Dunn6-Jul-01 16:10
sitebuilderMichael Dunn6-Jul-01 16:10 
GeneralRe: Attaching variables to a control Pin
6-Jul-01 16:45
suss6-Jul-01 16:45 
GeneralRe: Attaching variables to a control Pin
Michael Dunn6-Jul-01 20:12
sitebuilderMichael Dunn6-Jul-01 20:12 
GeneralRe: Attaching variables to a control Pin
7-Jul-01 4:02
suss7-Jul-01 4:02 
GeneralRe: Attaching variables to a control Pin
PJ Arends7-Jul-01 5:11
professionalPJ Arends7-Jul-01 5:11 
GeneralRe: Attaching variables to a control Pin
Paolo Messina7-Jul-01 4:20
professionalPaolo Messina7-Jul-01 4:20 
GeneralRe: Attaching variables to a control Pin
7-Jul-01 7:07
suss7-Jul-01 7:07 
GeneralRe: Attaching variables to a control Pin
7-Jul-01 9:24
suss7-Jul-01 9:24 
GeneralSlider control in a Toolbar! Pin
Jake Palmer6-Jul-01 13:07
Jake Palmer6-Jul-01 13:07 
GeneralVC++ sucks. Pin
6-Jul-01 12:44
suss6-Jul-01 12:44 
GeneralRe: VC++ sucks. Pin
Carlos Antollini6-Jul-01 13:10
Carlos Antollini6-Jul-01 13:10 
GeneralRe: VC++ sucks. Pin
Jake Palmer6-Jul-01 13:10
Jake Palmer6-Jul-01 13:10 
GeneralRe: VC++ sucks. Pin
6-Jul-01 14:58
suss6-Jul-01 14:58 
GeneralRe: VC++ sucks. Pin
tonyschr6-Jul-01 15:12
tonyschr6-Jul-01 15:12 
GeneralRe: VC++ sucks. Pin
Ben Burnett6-Jul-01 17:07
Ben Burnett6-Jul-01 17:07 

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.