Click here to Skip to main content
16,011,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Socket on Thread PB Pin
Roger Stoltz22-Nov-05 10:57
Roger Stoltz22-Nov-05 10:57 
Questionhow to prevent property page from been changed? Pin
includeh1022-Nov-05 2:07
includeh1022-Nov-05 2:07 
AnswerRe: how to prevent property page from been changed? Pin
David Crow22-Nov-05 3:18
David Crow22-Nov-05 3:18 
GeneralRe: how to prevent property page from been changed? Pin
includeh1022-Nov-05 12:18
includeh1022-Nov-05 12:18 
QuestionDialog question Pin
Lampros Giampouras22-Nov-05 1:51
Lampros Giampouras22-Nov-05 1:51 
AnswerRe: Dialog question Pin
NYTSX22-Nov-05 2:14
NYTSX22-Nov-05 2:14 
AnswerRe: Dialog question Pin
Hans Ruck22-Nov-05 2:17
Hans Ruck22-Nov-05 2:17 
AnswerRe: Dialog question Pin
toxcct22-Nov-05 2:30
toxcct22-Nov-05 2:30 
There are 2 ways.
let's say you make an addition between two controls, and return the answer into a 3rd editBox.

1. if you have member variables for you controls, do this :
UpdateData(TRUE);    //to load the control content into the member variable
m_Answer = m_LeftOperand + m_RightOperand;
UpdateData(FALSE);    //to update the controls with the new variables' contents


if you access your controls by pointers, you could use the following :
CString strAnswer       = _T("");
CString strLeftOperand  = _T("");
CString strRightOperand = _T("");
CEdit* peAnswer       = (CEdit*)GetDlgItem(IDC_ANSWER_EDIT);
CEdit* peLeftOperand  = (CEdit*)GetDlgItem(IDC_LEFT_OPERAND_EDIT);
CEdit* peRightOperand = (CEdit*)GetDlgItem(IDC_RIGHT_OPERAND_EDIT);
 
peLeftOperand->GetWindowText(strLeftOperand);
peRightOperand->GetWindowText(strRightOperand);
strAnswer.Format(_T("%f"), ::atof(strLeftOperand) + ::atof(strRightOperand));
peAnswer->SetWindowText(strAnswer);



TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: Dialog question Pin
Lampros Giampouras22-Nov-05 2:47
Lampros Giampouras22-Nov-05 2:47 
QuestionHow to implement the "Find Dialog" by reading/comparing the values in STL LIST Pin
zxc8922-Nov-05 1:13
zxc8922-Nov-05 1:13 
AnswerRe: How to implement the "Find Dialog" by reading/comparing the values in STL LIST Pin
Bob Ciora22-Nov-05 1:22
Bob Ciora22-Nov-05 1:22 
QuestionBackground Colors Pin
Willem Le Roux22-Nov-05 0:56
Willem Le Roux22-Nov-05 0:56 
AnswerRe: Background Colors Pin
Owner drawn22-Nov-05 1:00
Owner drawn22-Nov-05 1:00 
AnswerRe: Background Colors Pin
David Crow22-Nov-05 3:24
David Crow22-Nov-05 3:24 
QuestionBuild Problem Pin
Great A'Tuin22-Nov-05 0:48
Great A'Tuin22-Nov-05 0:48 
AnswerRe: Build Problem Pin
kakan22-Nov-05 1:14
professionalkakan22-Nov-05 1:14 
AnswerRe: Build Problem Pin
Bob Ciora22-Nov-05 1:16
Bob Ciora22-Nov-05 1:16 
AnswerRe: Build Problem Pin
Great A'Tuin22-Nov-05 1:19
Great A'Tuin22-Nov-05 1:19 
AnswerRe: Build Problem Pin
Owner drawn22-Nov-05 22:10
Owner drawn22-Nov-05 22:10 
QuestionUnable to get Automatic Statement Completion Pin
pani6822-Nov-05 0:16
pani6822-Nov-05 0:16 
AnswerRe: Unable to get Automatic Statement Completion Pin
ThatsAlok22-Nov-05 0:26
ThatsAlok22-Nov-05 0:26 
GeneralRe: Unable to get Automatic Statement Completion Pin
pani6822-Nov-05 1:20
pani6822-Nov-05 1:20 
GeneralRe: Unable to get Automatic Statement Completion Pin
ThatsAlok22-Nov-05 18:17
ThatsAlok22-Nov-05 18:17 
QuestionHow make icon in a listctrl second colomn(subitem = 1) show middle? Pin
wrc665522-Nov-05 0:08
wrc665522-Nov-05 0:08 
AnswerRe: How make icon in a listctrl second colomn(subitem = 1) show middle? Pin
Jack Puppy22-Nov-05 0:29
Jack Puppy22-Nov-05 0:29 

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.