一个关于Toolbar图标的问题,请大家快来帮帮忙!!! vc的工具条只支持16色,神仙也帮不了你 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 goodboyws(深夜不眠者):不知道就不要乱说 :(int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct){if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1) return -1;//Other Code//.....if (!m_wndToolBar.CreateEx(this) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME)){TRACE0("Failed to create Toolbar\n");return -1; // fail to create}{CImageList imageList;CBitmap bitmap;// Create and set the normal toolbar image list.//IDB_BITMAP_COLD 是一套工具栏的图,高31bitmap.LoadBitmap(IDB_BITMAP_COLD);imageList.Create(32, 31, ILC_COLORDDB|ILC_MASK, 11, 1);//RGB(161,161,161)是透明色imageList.Add(&bitmap, RGB(161,161,161));m_wndToolBar.SendMessage(TB_SETIMAGELIST, 0, (LPARAM)imageList.m_hImageList);imageList.Detach();bitmap.Detach(); // Create and set the hot toolbar image list.bitmap.LoadBitmap(IDB_BITMAP_TOOL);imageList.Create(32,31, ILC_COLORDDB|ILC_MASK, 11, 1);imageList.Add(&bitmap, RGB(254,254,254));m_wndToolBar.SendMessage(TB_SETHOTIMAGELIST, 0, (LPARAM)imageList.m_hImageList);imageList.Detach();bitmap.Detach();}.....} 二台不同局域网内的电脑,是不是不能使P2P技术通信 如何把BYTE*buffer的视频数据赋值到一个IPin指针中? 基类不小心写错了怎么办? 找IE里面指定tab所对应的进程ID 高分求救!!我想实现在MDI应用程序中创建不同的视图,不知道怎么实现 超难问题:MFC2005的控件没有anchor属性,怎么实现?! 函数或变量前定义为virtual是什么意思? 使用ADO的错误,麻烦大家帮我看看 求windows WDM 设备驱动程序开发指南 随书代码. 先谢了. 请问CRT和LEC是什么的简写? VC7.0是不是VC.net? 请问大侠如何用ADO向空表里写数据?我的代码有什么错误吗?
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;//Other Code
//.....if (!m_wndToolBar.CreateEx(this)
|| !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create Toolbar\n");
return -1; // fail to create
}
{
CImageList imageList;
CBitmap bitmap;// Create and set the normal toolbar image list.
//IDB_BITMAP_COLD 是一套工具栏的图,高31
bitmap.LoadBitmap(IDB_BITMAP_COLD);
imageList.Create(32, 31, ILC_COLORDDB|ILC_MASK, 11, 1);
//RGB(161,161,161)是透明色
imageList.Add(&bitmap, RGB(161,161,161));
m_wndToolBar.SendMessage(TB_SETIMAGELIST, 0,
(LPARAM)imageList.m_hImageList);
imageList.Detach();
bitmap.Detach();
// Create and set the hot toolbar image list.
bitmap.LoadBitmap(IDB_BITMAP_TOOL);
imageList.Create(32,31, ILC_COLORDDB|ILC_MASK, 11, 1);
imageList.Add(&bitmap, RGB(254,254,254));
m_wndToolBar.SendMessage(TB_SETHOTIMAGELIST, 0, (LPARAM)imageList.m_hImageList);
imageList.Detach();
bitmap.Detach();
}
.....
}