摘要: <1> : 静态文本框字体设置:下面可以在oninitdialog中设置:CFont cfont;//全局变量cfont.CreateFont(68, //这个数字就是字体大小了 0,0,0,FW_BOLD, FALSE,FALSE, 0, ANSI_CHARSET, // nCharSet OUT_DEFAULT_PRECIS, // nOutPrecision CLIP_DEFAULT_PRECIS, // nClipPrecision DEFAULT_QUALITY, // nQuality DEFAULT_PITCH | FF_SWISS, "Arial" 阅读全文
posted @ 2013-05-20 20:16 MMLoveMeMM 阅读(166) 评论(0) 推荐(0)
摘要: CTime( ) throw( );CTime( __time64_t time) throw( );CTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, int nDST = -1 );CTime( WORD wDosDate, WORD wDosTime, int nDST = -1 );CTime( const SYSTEMTIME& st, int nDST = - 1 ) throw( );CTime( const FILETIME& ft, int nDST = - 1 );CT 阅读全文
posted @ 2013-05-20 19:23 MMLoveMeMM 阅读(316) 评论(0) 推荐(0)
摘要: 参考:http://www.cnblogs.com/chuncn/archive/2009/03/12/1409261.htmlCTime类1.构造和初始化CTime类对象CTime类有下列构造函数:CTime( );CTime( const CTime& timeSrc );CTime( time_t time );CTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, int nDST = -1 );CTime( WORD wDosDate, WORD wDosTime, int nDST = - 阅读全文
posted @ 2013-05-20 19:22 MMLoveMeMM 阅读(565) 评论(0) 推荐(0)
摘要: 3种方法:1、在一个cpp文件中用extern声明,然后在其他文件中定义就可以用2、在**APP类中做公有变量,其他类中用AfxGetApp()得到一个App对象指针就可引用 3、专门写一个全局类,里边的变量及方法全部声明为静态具体说明如下(来自网络):最好在.cpp 中声明,如果其它文件用到这个变量,就用extern 就行了 1.cpp int x ; …… 2.cpp (用到了1.cpp 的 x) extern x; …… 这样,你在2文件中就可以把 X 当全局变量来用了 -------------------------------------------------... 阅读全文
posted @ 2013-05-20 19:21 MMLoveMeMM 阅读(810) 评论(0) 推荐(0)