VC雕虫小技集(四)[1]

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

本文简介:选择自 he_zhidan 的 blog

 

vc雕虫小技集()

何志丹

1, 阅读程序常常要看此变量在那些地方值改变过

ctrl+f查找太麻烦

将此变量前加const

改变的地方报错

 

2, 看一个函数被那些函数调用.

方法:

1,调试状态下,view->debug window->call stack

2,class view 的快捷菜单中选择called by

 

3, 在状态栏的最左边显示时间

static uint indicators[] =

{

        id_separator,//我们增加的

       id_separator,          

       id_indicator_caps,

       id_indicator_num,

       id_indicator_scrl,

};

 

int cmainframe::oncreate(lpcreatestruct lpcreatestruct)

{

      .....       m_wndstatusbar.setpaneinfo(1,id_separtor,sbps_normal,60);

}

 

//菜单的响应函数

void cmainframe::ontest()

{

    ctime t;

       t = ctime::getcurrenttime();

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

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

go top