|
-
October 14th, 2004, 01:38 AM
#3
Re: Which is best? (by Optimization & Speed)
i see.. i always find some of the codes from former officemates and sample codes in the net that uses the UpdateData function just to reflect/retrieve the values to the control and vice versa. im pertaining to the DDX variables.. when i try to use the GetDlgItem function in passing or retrieving of values, i just found out that i dont have to use UpdateData function....
sample :
void CCompute::Calculate()
{
float fResult = 0;
UpdateData(1); // to get value
fResult = m_vdPenaltyRate * float(m_viDays); // m_vdPenaltyRate and m_viDays are DDX variables
m_vsPenalty.Format("%f",fResult); // m_vsPenalty is a DDX variable also
UpdateData(0); // to Show the result
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|