Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem in showing the dialog form in different desktop created using CreateDesktop()? Pin
Amarelia26-Jan-06 2:00
Amarelia26-Jan-06 2:00 
AnswerRe: Problem in showing the dialog form in different desktop created using CreateDesktop()? Pin
Rage26-Jan-06 3:24
professionalRage26-Jan-06 3:24 
GeneralRe: Problem in showing the dialog form in different desktop created using CreateDesktop()? Pin
Amarelia26-Jan-06 7:05
Amarelia26-Jan-06 7:05 
GeneralRe: Problem in showing the dialog form in different desktop created using CreateDesktop()? Pin
Owner drawn26-Jan-06 17:16
Owner drawn26-Jan-06 17:16 
AnswerRe: Problem in showing the dialog form in different desktop created using CreateDesktop()? Pin
BadKarma26-Jan-06 21:29
BadKarma26-Jan-06 21:29 
QuestionDDX and DDV for dynamic CEdit Pin
JohnMFC26-Jan-06 1:21
JohnMFC26-Jan-06 1:21 
AnswerRe: DDX and DDV for dynamic CEdit Pin
Rage26-Jan-06 3:26
professionalRage26-Jan-06 3:26 
AnswerRe: DDX and DDV for dynamic CEdit Pin
Blake Miller26-Jan-06 10:42
Blake Miller26-Jan-06 10:42 
You have to emulate what the DDX and DDV do in yur own code within the DoDataExchange function.
First, examine the pDX->m_bSaveAndValidate

To handle the 'ddx' part of your control, you could do something like this in code:

To properly handl the DDV, you should give your edit control an identifier.

my_CEdit->CreateEx(WS_EX_CLIENTEDGE,_T("EDIT"),"Test",dwStyle,rect,this,MY_EDIT_IDENTIFIER,0);

// transfer data to or from control and member variable
if( m_bSaveAndValidate ){
CString csTemp;
// prepare data exchange in case of abort
pDX->PrepareEditCtrl(MY_EDIT_IDENTIFIER);
my_CEdit->GetWindowText(csTemp);
// do some validation on the contents of the string
if( contents of string are 'bad' ){
// abort if it is bad data
pDX->Fail();
} else {
// data was good, so transfer to member variable
m_MyStringVariable = csTemp;
}
} else {
// transfer from member variable to control
my_CEdit->SetWindowText(m_MyStringVariable);
}

Okay so I winged this one, if there are syntax errors, fix them yourself Wink | ;)

People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
QuestionChanging directory in CFileDialog Pin
doctorpi26-Jan-06 0:57
doctorpi26-Jan-06 0:57 
AnswerRe: Changing directory in CFileDialog Pin
Cedric Moonen26-Jan-06 1:43
Cedric Moonen26-Jan-06 1:43 
AnswerRe: Changing directory in CFileDialog Pin
David Crow26-Jan-06 3:32
David Crow26-Jan-06 3:32 
Questionfrom where extra #s come when float is saved to double Pin
pc_dev25-Jan-06 23:40
pc_dev25-Jan-06 23:40 
AnswerRe: from where extra #s come when float is saved to double Pin
Rage26-Jan-06 0:36
professionalRage26-Jan-06 0:36 
AnswerRe: from where extra #s come when float is saved to double Pin
David Crow26-Jan-06 4:02
David Crow26-Jan-06 4:02 
AnswerRe: from where extra #s come when float is saved to double Pin
cmk26-Jan-06 12:29
cmk26-Jan-06 12:29 
QuestionAFX? Pin
Zanathel25-Jan-06 22:58
Zanathel25-Jan-06 22:58 
AnswerRe: AFX? Pin
Stephen Hewitt25-Jan-06 23:03
Stephen Hewitt25-Jan-06 23:03 
GeneralRe: AFX? Pin
Zanathel26-Jan-06 0:38
Zanathel26-Jan-06 0:38 
GeneralRe: AFX? Pin
Blake Miller26-Jan-06 10:44
Blake Miller26-Jan-06 10:44 
AnswerRe: AFX? Pin
Owner drawn26-Jan-06 18:18
Owner drawn26-Jan-06 18:18 
QuestionVisual C++ with voice Pin
Deys25-Jan-06 22:15
Deys25-Jan-06 22:15 
AnswerRe: Visual C++ with voice Pin
Cedric Moonen25-Jan-06 22:35
Cedric Moonen25-Jan-06 22:35 
GeneralRe: Visual C++ with voice Pin
Deys26-Jan-06 14:41
Deys26-Jan-06 14:41 
GeneralRe: Visual C++ with voice Pin
Cedric Moonen26-Jan-06 20:29
Cedric Moonen26-Jan-06 20:29 
AnswerRe: Visual C++ with voice Pin
Rage26-Jan-06 3:28
professionalRage26-Jan-06 3:28 

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.