VC雕虫小技集(一)[3]

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

本文简介:选择自 he_zhidan 的 blog

2,物理删除.

 

 

 

5,自定义的类没了:

project->add to project ->files

 

6,使用pi

include math.h

#define _use_math_defines

#include "math.h"

m_pi 就是pi

 

7,请问怎样可以获得分区的卷标??

char buf[max_path];

getvolumeinformation("c:\\", buf, max_path, null, null, null, null, null);

afxmessagebox(buf);

 

8,打开一个网页

shellexecute(::getdesktopwindow(),_t("open"),//sk modified for unicode

              _t("http://www.sohu.com"),null,null,//sk modified for unicode

              sw_maximize);

 

9,关闭时,弹出对话框让用户确认

void cmainframe::onclose()

{

       if(idok != messagebox("你要退出吗?点确定退出","你要退出吗?",mb_okcancel))

              return  ;

       cframewnd::onclose();

} 

 

10,菜单小问题

id_file_open

本文关键:vc 雕虫小技技
  相关方案
Google
 

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

go top