编程技巧15法之一[2]

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

本文简介:选择自 jz_x 的 blog

                         wm_close,null,null);

}

 

2.         如何给树控件加入工具提示

l         首先给树控件加入tvs_infotip属性风格,如下所示:

if (!m_ctrltree.create(ws_child|ws_visible|

       tvs_haslines|tvs_hasbuttons|tvs_linesatroot|tvs_showselalways|tvs_infotip, //加入提示tvs_infotipjingzhou xu(树控件id:100)

              crect(0, 0, 0, 0), &m_wndtreebar, 100))

       {

              trace0("failed to create instant bar child\n");

              return -1;

       }

l         其次加入映射消息声明,如下所示:

afx_msg void ongetinfotip(nmhdr* pnmhdr,lresult* presult);       //树控件上加入提示消息,jingzhou xu   

 

on_notify(tvn_getinfotip, 100, ongetinfotip)                        //树控件条目上加入提示,jingzhou xu

本文关键:编程技巧
 

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

go top