demo工程
http://pan.baidu.com/s/1mh83aru
VB6附带的graphics文件夹资源
http://pan.baidu.com/s/1sl5RmI5
一 在对话框添加工具栏
如上图;插入工具栏资源,并编辑;
对话框头文件中加入;
CToolBar m_ToolBar;
OnInitDialog()函数中添加
if(!m_ToolBar.CreateEx( this,TBSTYLE_FLAT , WS_CHILD | WS_VISIBLE |CBRS_ALIGN_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS,
CRect(4,4,0,0))||!m_ToolBar.LoadToolBar(IDR_TOOLBAR1) )