嘿嘿,果然是懒得看书,这些问题书上都有:
1可以用控制字体的类,你懒得看书的话有个简便方法,选择对话框属性,有一个选项是Font,在里面可以设置字体,不过不止静态控件文本字体,其他的字体也会跟着变
2用ClassWizzard设置CEDIT变量,使他的类型为COLedatatime(显示时间),或为float(显示小数),另外还有种task控件也很好用,可以满足各种要求
3类型转换有各种函数,举一个例子吧:
CString age="24";
double agenum=atof(age);
atof()把CString转换为double(双精度型)
至于其他的你只好看书了,我也懒,懒得一一举例,呵呵

解决方案 »

  1.   

    1.可以给例程!Email
    2.EDIT本身支持!
    3.参见
    Data Conversion
    These routines convert data from one form to another. Generally these routines execute faster than conversions you might write. Each routine that begins with a to prefix is implemented as a function and as a macro. See Choosing Between Functions and Macros for information about choosing an implementation. Data-Conversion RoutinesRoutine Use 
    abs Find absolute value of integer 
    atof Convert string to float 
    atoi, _atoi64 Convert string to int 
    atol Convert string to long 
    _ecvt Convert double to string of specified length 
    _fcvt Convert double to string with specified number of digits following decimal point 
    _gcvt Convert double number to string; store string in buffer 
    _itoa, _i64toa, _itow, _i64tow Convert int to string 
    labs Find absolute value of long integer 
    _ltoa, _ltow Convert long to string 
    _mbbtombc Convert 1-byte multibyte character to corresponding 2-byte multibyte character 
    _mbcjistojms Convert Japan Industry Standard (JIS) character to Japan Microsoft (JMS) character 
    _mbcjmstojis Convert JMS character to JIS character 
    _mbctohira Convert multibyte character to 1-byte hiragana code 
    _mbctokata Convert multibyte character to 1-byte katakana code 
    _mbctombb Convert 2-byte multibyte character to corresponding 1-byte multibyte character 
    mbstowcs Convert sequence of multibyte characters to corresponding sequence of wide characters 
    mbtowc Convert multibyte character to corresponding wide character 
    strtod, wcstod Convert string to double 
    strtol, wcstol Convert string to long integer 
    strtoul, wcstoul Convert string to unsigned long integer 
    strxfrm, wcsxfrm Transform string into collated form based on locale-specific information 
    __toascii Convert character to ASCII code 
    tolower, towlower, _mbctolower Test character and convert to lowercase if currently uppercase 
    _tolower Convert character to lowercase unconditionally 
    toupper, towupper, _mbctoupper Test character and convert to uppercase if currently lowercase 
    _toupper Convert character to uppercase unconditionally 
    _ultoa, _ultow Convert unsigned long to string 
    wcstombs Convert sequence of wide characters to corresponding sequence of multibyte characters 
    wctomb Convert wide character to corresponding multibyte character 
    _wtoi Convert wide-character string to int 
    _wtol Convert wide-character string to long 
    --------------------------------------------------------------------------------
    Send feedback to MSDN.Look here for MSDN Online resources. 
      

  2.   

    嗯,那只好用控制字体的类了,你向prog_st(st)要例程吧 
      

  3.   

    prog_st(st) ,     [email protected],谢了
      

  4.   

    VC中的变量转换和C中没有什么大的区别吧,一些C中的函数在VC中都有,比如sprintf(),还有CString中的Format和sprintf也很象。强制转换也没有区别啊。