View Single Post
  #2 (permalink)  
Old February 11th, 2007, 12:14 PM
vampirekiss vampirekiss is offline
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Like this..


    double pi = 3.1415026;
    CString str;
    str.Format("%8.7f",pi);
    SetDlgItemText(IDC_BtnTest,str);

Reply With Quote