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_infotip,jingzhou 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