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

C / C++ / MFC

 
GeneralRe: Hi Pin
Mohammadj11-May-09 23:54
Mohammadj11-May-09 23:54 
AnswerRe: Hi Pin
Mohammadj16-May-09 22:19
Mohammadj16-May-09 22:19 
QuestionRe: Hi Pin
David Crow18-May-09 3:25
David Crow18-May-09 3:25 
AnswerRe: Hi Pin
Mohammadj18-May-09 5:07
Mohammadj18-May-09 5:07 
GeneralRe: Hi Pin
David Crow18-May-09 5:10
David Crow18-May-09 5:10 
GeneralRe: Hi Pin
Mohammadj18-May-09 9:11
Mohammadj18-May-09 9:11 
GeneralRe: Hi Pin
David Crow18-May-09 9:22
David Crow18-May-09 9:22 
GeneralRe: Hi Pin
Mohammadj18-May-09 22:01
Mohammadj18-May-09 22:01 
helo

Here is the code i made it did not work loll


Sorry

It compiled but it did not work loll


Here is the code i wrote in


void C_Double_Task::OnClicked()
{

DWORD dwpos = GetMessagePos() ;
CPoint pt ;
pt.x = LOWORD(dwpos );
pt.y = HIWORD(dwpos) ;
CRect client_rectangle ;
GetClientRect( client_rectangle) ;
CString strA , strB ;
double db_a ,db_b ;
GetParent()->GetDlgItemText(IDC_NUM1,strA) ;
GetParent()->GetDlgItemText(IDC_NUM2,strB) ;
db_a = atof(strA);
db_b= atof(strB);
double result ;

result = db_b + db_a ;
CRect leftRect ;
leftRect = client_rectangle ;

leftRect.right = client_rectangle .left +client_rectangle.Width()/2;

if(leftRect.PtInRect(pt))
result = db_b - db_a ;


CString Str_result ;
Str_result.Format("%3.2f",result);


GetParent()->SendMessage(UDM_REGION_CLICKED, result);


}


Wink | ;) and

LRESULT CHashiDlg::OnRegionClicked( WPARAM wParam, LPARAM lparan12 )
{
CString resl ;

resl.Format("%3.3",wParam);

SetDlgItemText( IDC_RESULT , resl) ;

return (0);
} Wink | ;)
QuestionRe: Hi Pin
David Crow19-May-09 2:40
David Crow19-May-09 2:40 
AnswerRe: Hi Pin
Mohammadj20-May-09 22:24
Mohammadj20-May-09 22:24 
QuestionRe: Hi Pin
David Crow21-May-09 2:50
David Crow21-May-09 2:50 
QuestionBigNum Pin
AndreFratelli11-May-09 2:51
AndreFratelli11-May-09 2:51 
QuestionRe: BigNum Pin
Divyang Mithaiwala11-May-09 3:35
Divyang Mithaiwala11-May-09 3:35 
AnswerRe: BigNum Pin
harold aptroot11-May-09 4:05
harold aptroot11-May-09 4:05 
QuestionRe: BigNum Pin
David Crow11-May-09 4:39
David Crow11-May-09 4:39 
QuestionRe: BigNum Pin
CPallini11-May-09 5:13
mveCPallini11-May-09 5:13 
QuestionUnable to Install Plateform SDK Pin
pandit8411-May-09 2:20
pandit8411-May-09 2:20 
AnswerRe: Unable to Install Plateform SDK Pin
Naveen11-May-09 2:25
Naveen11-May-09 2:25 
GeneralRe: Unable to Install Plateform SDK Pin
pandit8411-May-09 3:45
pandit8411-May-09 3:45 
GeneralRe: Unable to Install Plateform SDK Pin
Naveen11-May-09 3:51
Naveen11-May-09 3:51 
Questionwmi problem Pin
Mogaambo11-May-09 2:19
Mogaambo11-May-09 2:19 
AnswerRe: wmi problem Pin
«_Superman_»11-May-09 2:35
professional«_Superman_»11-May-09 2:35 
Questionbuild errors Pin
josip cagalj11-May-09 1:36
josip cagalj11-May-09 1:36 
AnswerRe: build errors Pin
josip cagalj11-May-09 2:26
josip cagalj11-May-09 2:26 
QuestionHow to compress an image? Pin
kapardhi11-May-09 1:30
kapardhi11-May-09 1:30 

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.