Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to debug memory leaks in MFC program Pin
Cedric Moonen24-Oct-05 3:58
Cedric Moonen24-Oct-05 3:58 
Question840802 - custom controls in a property page Pin
ilostmyid224-Oct-05 3:27
professionalilostmyid224-Oct-05 3:27 
QuestionPrevent Mouse Movement. Pin
Storm-blade24-Oct-05 3:02
professionalStorm-blade24-Oct-05 3:02 
AnswerRe: Prevent Mouse Movement. Pin
vikas amin24-Oct-05 4:26
vikas amin24-Oct-05 4:26 
GeneralRe: Prevent Mouse Movement. Pin
Storm-blade24-Oct-05 4:31
professionalStorm-blade24-Oct-05 4:31 
QuestionHow to use DDX with ComboBox Pin
vikas amin24-Oct-05 2:29
vikas amin24-Oct-05 2:29 
AnswerRe: How to use DDX with ComboBox Pin
David Crow24-Oct-05 3:18
David Crow24-Oct-05 3:18 
GeneralRe: How to use DDX with ComboBox Pin
vikas amin24-Oct-05 4:10
vikas amin24-Oct-05 4:10 
Hi David
Actully i mean that i wanted to use the
dynamic data exchange.
As for the Edit box we can Initalise & use the variable defined
as the CString by using the Wizard.

To initalise a editbox varibale CString m_passwordvalue
we can add this code to the dialogbox constructor
//{{AFX_DATA_INIT(LoginBox)<br />
m_passwordvalue = _T("1");<br />
m_usernamevalue = _T("PMR");<br />
//}}AFX_DATA_INIT


By the DoDataExchange function the data from the edit box is
transfered to the varibale (m_passwordvalue) on doing
UpdateData(FALSE)in any of our functions ;
<br />
void LoginBox::DoDataExchange(CDataExchange* pDX)<br />
{<br />
	CDialog::DoDataExchange(pDX);<br />
	//{{AFX_DATA_MAP(LoginBox)<br />
	DDX_Control(pDX, IDC_PASSWORD, m_password);<br />
	DDX_Control(pDX, IDC_USERNAME, m_username);<br />
	//}}AFX_DATA_MAP<br />
}



I wanted to use the same fundamental for the ComboBox is it
possible ???



Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
GeneralRe: How to use DDX with ComboBox Pin
David Crow24-Oct-05 4:28
David Crow24-Oct-05 4:28 
QuestionAbout &quot;Specstrings.h&quot;, Please help! Pin
chenxiujie24-Oct-05 2:26
chenxiujie24-Oct-05 2:26 
Questionassembly coding for Hufman coding Pin
vikas amin24-Oct-05 2:23
vikas amin24-Oct-05 2:23 
AnswerRe: assembly coding for Hufman coding Pin
toxcct24-Oct-05 2:51
toxcct24-Oct-05 2:51 
GeneralRe: assembly coding for Hufman coding Pin
vikas amin24-Oct-05 4:44
vikas amin24-Oct-05 4:44 
GeneralRe: assembly coding for Hufman coding Pin
toxcct24-Oct-05 4:54
toxcct24-Oct-05 4:54 
QuestionProblem facing on SetLimitText() API Pin
shiva e balasubramaniam24-Oct-05 2:16
shiva e balasubramaniam24-Oct-05 2:16 
QuestionRe: Problem facing on SetLimitText() API Pin
David Crow24-Oct-05 3:26
David Crow24-Oct-05 3:26 
AnswerRe: Problem facing on SetLimitText() API Pin
shiva e b25-Oct-05 9:59
sussshiva e b25-Oct-05 9:59 
Questionprogram termination(very very urgent) Pin
swaapu24-Oct-05 1:15
swaapu24-Oct-05 1:15 
AnswerRe: program termination(very very urgent) Pin
Cedric Moonen24-Oct-05 1:19
Cedric Moonen24-Oct-05 1:19 
GeneralRe: program termination(very very urgent) details Pin
swaapu24-Oct-05 2:27
swaapu24-Oct-05 2:27 
GeneralRe: program termination(very very urgent) details Pin
kakan24-Oct-05 2:41
professionalkakan24-Oct-05 2:41 
GeneralRe: program termination(very very urgent) details Pin
Cedric Moonen24-Oct-05 2:45
Cedric Moonen24-Oct-05 2:45 
QuestionFlickering Problem In Marquee ? Pin
Amarelia24-Oct-05 0:48
Amarelia24-Oct-05 0:48 
AnswerRe: Flickering Problem In Marquee ? Pin
Rage24-Oct-05 1:33
professionalRage24-Oct-05 1:33 
AnswerRe: Flickering Problem In Marquee ? Pin
_anil_24-Oct-05 2:40
_anil_24-Oct-05 2:40 

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.