about ToolBar 可不可以在基于 Dialog 的工程中,或者是一个Dialog上加入 ToolBar ? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以,见下:http://www.codeguru.com/dialog/toolbars.shtmlhttp://www.codeguru.com/dialog/PlacingAToolbarOnADlg.shtmlhttp://www.codeguru.com/dialog/dlgtoolbar.shtmlhttp://www.codeguru.com/dialog/tbdlg_ok.shtml BOOL CMyDlg::OnInitDialog() { CDialog::OnInitDialog(); if (!m_ToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP |CBRS_TOOLTIPS| CBRS_GRIPPER | CBRS_FLYBY |CBRS_BORDER_3D) || !m_ToolBar.LoadToolBar(IDR_DLG_TOOL)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } EnableToolTips();//支持工具提示 RepositionBars(0,0xffff,NULL); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE} 可以,在OnCreate里面建立并且响应就可以了 http://www.vckbase.com/vckbase/第十一期框架窗口文档与视栏中有源码及说明 生成一个DLL,如何去掉= @ILT这些东西 关于自制绘图软件 请大家告诉我这是什么编译错误?谢~~~~ 数据库连接后不能打开一个表!急(菜鸟送分了) 程序中调用图标问题 在VC中如何删除一个已定义的类? 想问一下利用自相关函数进行纹理图像分割的思路 应该是UNICODE的问题,不过请看描述 ★★★★★急,两个问题关于DateTimePicker控件1如何显示NULL2如何显示年月日时分秒 VC的API函数中,有没有在磁盘上建立FAT32文件系统的API函数? 取得文档指针 请问在VC里怎么同时显示两个互不棣属的窗口?
http://www.codeguru.com/dialog/toolbars.shtml
http://www.codeguru.com/dialog/PlacingAToolbarOnADlg.shtml
http://www.codeguru.com/dialog/dlgtoolbar.shtml
http://www.codeguru.com/dialog/tbdlg_ok.shtml
{
CDialog::OnInitDialog();
if (!m_ToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
|CBRS_TOOLTIPS| CBRS_GRIPPER | CBRS_FLYBY |CBRS_BORDER_3D) ||
!m_ToolBar.LoadToolBar(IDR_DLG_TOOL))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
EnableToolTips();//支持工具提示
RepositionBars(0,0xffff,NULL); return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
第十一期框架窗口文档与视栏中有源码及说明