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

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

本文简介:选择自 httruly 的 blog

}

 

 

begin_message_map(cnumberedit, cedit)

       //{{afx_msg_map(cnumberedit)

       on_wm_char()

       on_control_reflect(en_killfocus, onkillfocus)

       //}}afx_msg_map

end_message_map()

 

void cnumberedit::onchar(uint nchar, uint nrepcnt, uint nflags)

{

       // todo: add your message handler code here and/or call default

       if(nchar == 8)

       {

              cedit::onchar(nchar, nrepcnt, nflags);

              return;

       }

 

       bool bchange = false;

       getwindowtext(m_str);

      

       if(checknumber(nchar,nrepcnt,nflags))

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

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

go top