编辑数字的文本框CNumberEdit[5]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 httruly 的 blog

              //m_point.x += m_point.y*6;

              //setcaretpos(m_point);

       }

}

 

void cnumberedit::onkillfocus()

{

       // todo: add your control notification handler code here

       getwindowtext(m_str);

       int iloop = m_iafterdotlen;

       if(m_str.isempty()) 

              m_str = "0.";

       else if(m_str.getlength() == 1 && m_str[0] == tchar('-'))

              m_str = "0.";

       else

       {

              int idotpos = m_str.find(tchar('.'));

              if(idotpos <0)

                     m_str+=".";

              if(idotpos >0)

本文关键:编辑数字的文本框CNumberEdit
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top