点点滴滴

不积跬步,无以至千里;不积小流,无以成江海。

储备列表

  • CListCtrl使用详解

    1

    1。先来介绍REPORT类型的CListCtrl: 首先使用下面的语句设置CListCtrl的style: DWORD SetExtendedStyle( DWORD dwNewStyle ); 其中 LV*_**_CHECKBOXES 表示添加CheckBox LV*_**_FULLROWSELECT 表示选择整行 

    soskp-yoours2007-04-20 19:48:27

    阅读更多
  • 写文件(内容追加)

    2

    CString str; str.Format("%s\r\n",szMessage); CFile f("d:\\rr.txt",CFile::modeWrite|CFile::modeCreate|CFile::modeNoTruncate); f.SeekToEnd();//定位到文件尾,不覆盖原来的东西 f.Write(str.G

    soskp-yoours2007-04-20 19:47:41

    阅读更多
  • 非模态对话框退出

    3

    //非模态对话框退出void CInformation::PostNcDestroy(){ delete this; CDialog::PostNcDestroy();}void CInformation::OnCancel(){ DestroyWindow();}或者直接调用DestroyWindow

    soskp-yoours2007-04-20 19:46:43

    阅读更多