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

C / C++ / MFC

 
GeneralRe: Move button at runtime Pin
Owner drawn26-Jan-06 23:35
Owner drawn26-Jan-06 23:35 
Questionchild frame fills main frame? Pin
LeeeNN26-Jan-06 7:52
LeeeNN26-Jan-06 7:52 
Questionsplitter window dynamic merge too panes. Pin
LeeeNN26-Jan-06 7:46
LeeeNN26-Jan-06 7:46 
AnswerRe: splitter window dynamic merge too panes. Pin
David Crow26-Jan-06 8:13
David Crow26-Jan-06 8:13 
QuestionPainting in "CFormView::OnPaint" over controls Pin
AnTri26-Jan-06 7:41
AnTri26-Jan-06 7:41 
QuestionAlternatives to WinHTTP and SoapToolkit? Pin
Ed K26-Jan-06 5:10
Ed K26-Jan-06 5:10 
QuestionDoes anyone know the default location to.. Pin
JohnnyG26-Jan-06 4:38
JohnnyG26-Jan-06 4:38 
AnswerRe: Does anyone know the default location to.. Pin
David Crow26-Jan-06 7:26
David Crow26-Jan-06 7:26 
QuestionRoaming profile Pin
P Gibson26-Jan-06 3:48
P Gibson26-Jan-06 3:48 
QuestionRe: Roaming profile Pin
David Crow26-Jan-06 4:11
David Crow26-Jan-06 4:11 
QuestionCMDIFrameWnd in ActiveX Pin
souso2026-Jan-06 3:12
souso2026-Jan-06 3:12 
Question[Message Deleted] Pin
Zanathel26-Jan-06 2:20
Zanathel26-Jan-06 2:20 
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 

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.